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!
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!