Results 1 to 3 of 3

Thread: How do I can select 2nd item from drop down list

  1. #1
    Geek_Guest
    Guest

    How do I can select 2nd item from drop down list

    How do we select the dynamic values in drop down list in loadrunner at runtime or we can say how do i can select 2nd item from drop down list at each run. If anybody can tell the answer please send it across, as I need to implement it as soon as possible

    Question asked by visitor diksha


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

    Re: How do I can select 2nd item from drop down list

    In the web(HTTP/HTML) protocol, you will need to manually adjust the script itself to do this.

    If the second value in the list may be different each time the page is returned, you will need to capture the second value using the web_reg_save_param() function.

    i.e.
    web_reg_save_param("SecondVal", "LB=", "ORD=2");

    Once the second value is captured, it can be used in the web_submit_data() function that sends the value of the drop down list back to the server.

    In the web Click and Script protocol, this is much easier as the web_list() function has a "SelectByOrdinal=" option.


  3. #3
    Junior Member
    Join Date
    Nov 2010
    Answers
    7

    Re: How do I can select 2nd item from drop down list

    I have a problem which is kind of an extension of this issue...I'm getting back a set of search results (training classes), and I want to have QTP identify where the training class I've just created is in this list and click its associated Delete icon. I know I can parameterize the name of the training class, but the Delete icon is a separate object from the name of the class. So how do I get QTP to know "The new training class is the fifth (for example) item in the list, so I need to click the Delete icon in the fifth row"?


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