agouti icon indicating copy to clipboard operation
agouti copied to clipboard

FindByLabel with select HTML element

Open gylaz opened this issue 8 years ago • 1 comments

It seems that FindByLabel does not work with select HTML elements. Is there a reason for this?

gylaz avatar Apr 25 '16 23:04 gylaz

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.

sclevine avatar Jun 23 '16 22:06 sclevine