Hi Sankalp,
I tried the following method to get it to work, the page has a webtable named questions and I used a checkpoint to see the position of questions and radio buttons.
Hi Sankalp,
I tried the following method to get it to work, the page has a webtable named questions and I used a checkpoint to see the position of questions and radio buttons.
Is there a way to get a count of the number of items of webradiogroup class in a cell given a webtable and then check the outertext of the label and say if it is yes then select it. My aim is to select Yes for all the webradiobuttons on the page because the questions do not matter. Can you please help out with this if you have some ideas?
Thanks
Manisha
I tried the following method to get it to work, the page has a webtable named questions and I used a checkpoint to see the position of questions and radio buttons.
Code:
Questionloc = browser("Welcome").Page("Welcome").WebTable("Questions").RowCount
For j = 3 to questionloc
Qtext = browser("Welcome").Page("Welcome").WebTable("Questions").GetCellData(j,1)
Select Case (Qtext)
Case "Are you a full time emp?"
browser("Welcome").Page("Welcome").WebRadioGroup("html id:=Questions_"&j-1&"_Id").select "Y"
/rest of the questions
End Select
Next
Hi Sankalp,
I tried the following method to get it to work, the page has a webtable named questions and I used a checkpoint to see the position of questions and radio buttons.
Code:
Questionloc = browser("Welcome").Page("Welcome").WebTable("Questions").RowCount
For j = 3 to questionloc
Qtext = browser("Welcome").Page("Welcome").WebTable("Questions").GetCellData(j,1)
Select Case (Qtext)
Case "Are you a full time emp?"
browser("Welcome").Page("Welcome").WebRadioGroup("html id:=Questions_"&j-1&"_Id").select "Y"
/rest of the questions
End Select
Next
Is there a way to get a count of the number of items of webradiogroup class in a cell given a webtable and then check the outertext of the label and say if it is yes then select it. My aim is to select Yes for all the webradiobuttons on the page because the questions do not matter. Can you please help out with this if you have some ideas?
Thanks
Manisha