@jarib, thanks for the quick reply.
Back to the issue, if ```Element#text``` only shows visible text. We can do:
```ruby
require 'watir-webdriver'
b = Watir::Browser.new :chrome
b.goto "http://prm.ru/news"
b.as.each{ |link| puts link.inspect if link.text =~ /ФОТОРЕПОРТАЖИ/ }
#<Watir::Anchor:0x..f8cc406f8e4cfb07a located=true
selector={:element=>(webdriver element)}>
```
Note that window is not maximized and link is not currently visible. But we
can't get the link text when searching in some container like ```<section>```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/258#issuecomment-43776528
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development