splinter
splinter copied to clipboard
'select' method : xpath for finding target option fails when using optgroup
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)
This appears to have been fixed by #334