Results 1 to 2 of 2

Thread: how to retrieve value from html tag

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Answers
    1

    how to retrieve value from html tag

    hello all,
    how to retrieve non-editable text field value in web click-script protocol in loadrunner from html page

    for example :
    this is line from generation log
    span id="txtTicketNumber" disabled="disabled" tabindex="-1" style="font-size:Medium;font-weight:bold;">9291535 span

    i want to retrieve value of "txtTicketNumber" into a variable in my script.
    that is
    variable temp should contain value 9291535

    any api function from loadrunner?

    thanks

    Last edited by manishisarda; 09-12-2007 at 10:55 AM.

  2. #2
    Contributing Member
    Join Date
    Sep 2007
    Answers
    50

    Re: how to retrieve value from html tag

    web_reg_save_param("txtTicketNumber",
    "LB=",
    "RB=
    ",
    LAST);

    char *temp;
    sprintf(temp, lr_eval_string("{txtTicketNumber}"));

    Last edited by SW_LoadRunnerGuru; 09-12-2007 at 01:38 PM. Reason: need to quote

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact