Reposting myself from SO:
+1 to raise this as issue on watir-webdriver as it definitely needs
> discussion. I use button(:value) in my tests a lot and it actually matches
> button's value, so there is something behind this.
>
According to code, "button" tag name and "value" are treated specific
On Thursday, May 16, 2013 6:14:34 AM UTC-7, Dan wrote:
> It doesn't look like it's just Chrome actually. I got the same results in
> Firefox. Looks like the stackoverflow answer addresses the issue? If I
> change from button type of button to input type of button it works like you
> would ex
It doesn't look like it's just Chrome actually. I got the same results in
Firefox. Looks like the stackoverflow answer addresses the issue? If I
change from button type of button to input type of button it works like you
would expect.
>> b = Watir::Browser.new :firefox
=> #
>> b.goto("file:/