> @@ -360,7 +361,8 @@ def equal_pair(key, value)
>          "contains(concat(' ', @class, ' '), #{klass})"
>        elsif key == :label && should_use_label_element?
>          # we assume :label means a corresponding label element, not the 
> attribute
> -        "@id=//label[normalize-space()=#{XpathSupport.escape value}]/@for"
> +        text = "normalize-space()=#{XpathSupport.escape value}"
> +        "(@id=//label[#{text}]/@for or parent::label[#{text}])"

I've added 
https://github.com/watir/watirspec/commit/ee27f8dd980702d187b3d9aff7e88f6527878e60.
 Tested in Firefox and Chrome, I'll also check Opera/IE and will report.

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/201/files#r3853265
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to