> @@ -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}])"

@jarmo Thanks, I've managed to run specs on Sauce locally (n.b. they do are 
really slow )

Tested in IE 8/9/10 and Safari. Works perfectly. Merging it. @jarib Can you 
release?

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

Reply via email to