Saurabh Mathur
Saurabh Mathur

Reputation: 3

Selenium IDE - Radio button error

Selenium IDE - When running the script I am getting error for the radio button in selenium IDE. In my script, it’s required to select radio button (selecting dates) but its error message “[error] Element id=radio250 not found”. it stops the execution here. even if i use another date, it still stops on the same point. How to change the value in dynamic ?

I am new in the testing industry and would appreciate any help on this one. I know it has something to do with xpath but I don’t know how to use it ;)

Upvotes: 0

Views: 2689

Answers (1)

Rohit Ware
Rohit Ware

Reputation: 2002

You can use below alternative to locate radio button

//input[@type='radio']
//input[@name='name_attribute' and @value='value_attribute']

OR by xpath

xpath=(//*[@class="name of the class"])

Or if your page is not fully loaded then also you will face same problem - element not found. If such situation is there put pause command before execution of command for radio button

Or provide the HTML of the element you are trying to locate

Upvotes: 0

Related Questions