Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying radio buttons with same html ID but dynamic webelement properties
#11
Not Solved
Hi Sankalp,
Can you look at my query above when you get a chance please?

Regards
Manisha
Reply
#12
Not Solved
Hi Manisha,

Can you post the code u might have written?

Regards,
Sankalp
Reply
#13
Not Solved
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


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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify a Dynamic WebElement? PreethiJoshi 1 5,537 05-03-2018, 04:08 PM
Last Post: Ankur
  Dynamic obj rep - get text in the class (html) marcio cravo moreira 0 2,127 05-26-2015, 06:58 PM
Last Post: marcio cravo moreira
  Radio Button vinod123 8 10,619 09-25-2014, 12:12 PM
Last Post: vinod123
  Radio Group problem vinod123 4 5,793 09-25-2014, 12:10 PM
Last Post: vinod123
  not identifying the object properties seven 3 2,742 02-18-2014, 04:23 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)