I have two buttons YES and NO, the step on the feature file can pass argument to the method, both buttons has the same name so I want to click on the by finding its name and value for example:

def licenceStatus(licenceS)
licence = @driver._element(name:"licence_status", value:licenceS).click
end 

The above method works in Watir but not how do I get this to work?



Source link https://sqa.stackexchange.com/questions/27904/selenium--how-to-find-a-radio-button-by-name-and-value

LEAVE A REPLY

Please enter your comment!
Please enter your name here