Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying radio buttons with same html ID but dynamic webelement properties
#1
Not Solved
Hi,
I am working on an application where I need to answer a set of questions that have radio buttons for answer selection.
the html id is the same for two questions that appear on the screen in two different scenarios. I am using Object repository and assigned the object the same name as on the screen, hence, whenever a different scenario is executed, the script fails because it is identifying the object using the logical name in OR.

for eg: In scenario 1: webelement is Question 1 has A and B as the radio buttons and the html id is Question_1_id
in scenario 2: webelement is Question 2 has an A and B as radio buttons and the html id is Question_1_id

I named the object with Question_1_id as "Question1" in the OR hence, when the script is executed for scenario 2 , it is failing since it is looking at text for "Question 1".

Browser("aa").page("aa").webradiogroup("Name:=Question1", "html id:= Question_1_id").select parameter("answer") /parameter answer has A or B

Please let me know if there is a solution! Thank you very much!
Reply


Messages In This Thread
Identifying radio buttons with same html ID but dynamic webelement properties - by manishac - 04-20-2012, 05:05 AM

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

Forum Jump:


Users browsing this thread: 3 Guest(s)