agouti
agouti copied to clipboard
FindByLabel with select HTML element
It seems that FindByLabel
does not work with select
HTML elements. Is there a reason for this?
Here's the XPath Agouti uses for labels:
//input[@id=(//label[normalize-space()="%s"]/@for)] | //label[normalize-space()="%[1]s"]/input
where %s
/ %[1]s
is the label text.
I'll extend this to work with select
(and not just input
) when I get a chance. Feel free to submit a PR -- I may not be able to fix this soon.