splinter icon indicating copy to clipboard operation
splinter copied to clipboard

'select' method : xpath for finding target option fails when using optgroup

Open stewbawka opened this issue 10 years ago • 1 comments

Current xpath the select uses: '//select[@name="%s"]/option[@value="%s"]' % (self["name"], value) This fails when select tag uses nested optgroups.

Suggestion: xpath for find option could be made more robust as follows: '//select[@name="%s"]//option[@value="%s"]' % (self["name"], value)

stewbawka avatar Feb 18 '16 20:02 stewbawka

This appears to have been fixed by #334

javascript-error avatar Mar 01 '20 02:03 javascript-error