Coming back to original issue...

The summary of this is:
1. In Firefox, XPath query like ```//textarea[value="John Jones"]``` returns 
nothing.
2. But you can get value of element with ```$x('//textarea')[0].value```.
3. Executing Selenium getAttribute atom for value also returns it.

```ruby
b.driver.instance_variable_get(:@bridge).getElementAttribute 
e.instance_variable_get(:@id), 'value'
 #=> "John Jones"
```

That's awkward, because I suppose XPath engine in Firefox should be able to 
search element with value since it's accessible. @jarib I'm not that good with 
Selenium, maybe there is some magic in atoms? What do you think?

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

Reply via email to