Here is my test case where I faced the issue:
listing from irb
```shell
irb(main):001:0> require 'watir-webdriver'
=> true
irb(main):002:0> b = Watir::Browser.new :chrome
=> #<Watir::Browser:0x..fd13c1cdc9c5a360e url="data:," title="data:,">
irb(main):003:0> b.goto "http://prm.ru/news"
=> "http://prm.ru/news/"
irb(main):004:0> b.section(class: 'rn-section_photoreport-on-main').as.each{|e|
puts e.text.inspect}
""
""
""
""
""
""
""
""
""
""
irb(main):005:0> b.driver.manage.window.maximize
=> nil
irb(main):006:0> b.section(class: 'rn-section_photoreport-on-main').as.each{|e|
puts e.text.inspect}
"ФОТОРЕПОРТАЖИ"
""
""
""
""
""
""
"Семейный отдых: Покатушки"
""
""
```
So the problem is, Webdriver can't see text inside anchors if window is not
maximized.
I use:
```
Chromium 34.0.1847.137
Linux user 3.14.3-2-ARCH #1 SMP PREEMPT Mon May 12 20:52:20 CEST 2014 x86_64
GNU/Linux
chromedriver 2.9
watir-webdriver (0.6.9)
```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/258
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development