robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

Select Radio Button failures #103

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by bryan.oakley on 15 Mar 2010

I'm getting the following error with SelectRadioButton:

ERROR: Invalid xpath [2]: //input[@⁠type='radio' and @⁠name='models['selectedState']'and (@⁠value='true' or @⁠id='true')]

Notice how the word "and" is immediately after the single quote.

Also, the code fails to take into consideration that the name might have a single quote in it.

And finally, if I understand the generated xpath correctly, it is not possible to select a radiobutton that has a value of 'false' since the xpath includes the clause "and (@⁠value='true' or @⁠id='true')"

spooning commented 9 years ago

Originally submitted to Google Code by bryan.oakley on 15 Mar 2010

Uh, never mind that last paragraph. I understand now that I think about it four five seconds...(slaps forehead)

spooning commented 9 years ago

Originally submitted to Google Code by Andreas.EbbertKarroum on 23 Apr 2010

This issue was closed by revision 00f0a188a1.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 24 Apr 2010

We use 'Done' status instead of 'Fixed'. Unfortunately there doesn't seem to be option to configure the state used when issues are closed by commit messages.