Results 1 to 2 of 2

Thread: Select a different value from the combo box

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    Select a different value from the combo box

    How is it possible to select a different value from the combo box control in script playback in each test run?

    NOTE : [This question was asked by eiman]


  2. #2
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: Select a different value from the combo box

    This was whe I was learning WinRunner.

    Hope it helps.

    set_window ("Flight Reservation", 5);
    edit_set ("Date of Flight:", "07/07/07");
    list_get_info("Fly From:","count",n);
    for (i=0;i {
    list_get_item("Fly From:",i,x);
    list_select_item("Fly From:",x);
    if (list_select_item("Fly To:",x))
    tl_step("S1",1,x & " appears in fly to also");
    else
    tl_step("S1",0,x & " does't appear in fly to");
    }


    Lack of WILL POWER has caused more failure than
    lack of INTELLIGENCE or ABILITY.

    -sutnarcha-

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