This is a feature, not a bug - `Element#text` only shows visible text. The page 
in your example is responsive, i.e. it will show or hide elements on the page 
depending on the window size. 

If you really want all text, you can either (a) execute some JavaScript 
(however, the result is browser-dependent)

```ruby
browser.execute_script("return arguments[0].innerText", element)
```

or (b), parse the DOM in Ruby:

```ruby
require 'nokogiri'
Nokogiri::HTML.parse(element.html).inner_text
```


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

Reply via email to