Results 1 to 4 of 4

Thread: Selecting number in QTP

  1. #1
    Geek_Guest
    Guest

    Selecting number in QTP

    Hi,

    I am Using QTP, how can I make this work when for example on the page I have list of numbers (for e.g 1, 2, 3, 4..) with the radio button to select it, how can I select number 2 without selecting the number 1.

    This is my recorded script :
    'Browser("Ingersoll Rand").Page("ProcureStaff - Ingersoll").Frame("main_2").WebRadioGroup("SubmittalID").Select "3944"

    but this only select the first radio button on the but if I want to select the second radio button...this does not identify.

    Please see anyone can help me with the solution asap!

    Question asked by visitor Preeti Reddy


  2. #2
    Contributing Member
    Join Date
    Feb 2006
    Answers
    85

    Re: Selecting number in QTP

    this is the problem for which i still don have a concrete answers ... will post once i get one ...

    But i do have a workaround to survive and that
    add few more property for the radiobuttons like the location x and y coordinates and then it will work ...

    Thanks,
    Kunal.


  3. #3
    Contributing Member
    Join Date
    Feb 2006
    Answers
    85

    Re: Selecting number in QTP

    this is the problem for which i still don have a concrete answers ... will post once i get one ...

    But i do have a workaround to survive and that
    add few more property for the radiobuttons like the location x and y coordinates and then it will work ...

    Thanks,
    Kunal.


  4. #4
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: Selecting number in QTP

    Hai friend,

    Please use index property to select the radio buttons

    Browser("Ingersoll Rand").Page("ProcureStaff - Ingersoll").Frame("main_2").WebRadioGroup("SubmittalID").Select "#0"

    Browser("Ingersoll Rand").Page("ProcureStaff - Ingersoll").Frame("main_2").WebRadioGroup("SubmittalID").Select "#1"

    The index starts from zero. #0 will identify first item and you can use #1 to identify the second and so on.

    Thanks
    Deepa


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