Hello,
In certain websites, such as Facebook, if the websites gets excessive amount of
AJAX request, Watir doesn't recognize this website as "it is loaded", but sees
it as "the page is still loading". Even though it is fully loaded but the
content is being refreshed using AJAX calls.
It doesn't print "Finished" and gives TimeOut error which is rescued from
'net/http' library.
Error Message:
```
/Users/user/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/protocol.rb:158:in
`rescue in rbuf_fill': Net::ReadTimeout (Net::ReadTimeout)
```
Example of a code:
```
browser = Watir::Browser.new :firefox
browser.goto 'https://www.facebook.com'
browser.text_field(:name => 'email').set "USERNAME"
browser.text_field(:name => 'pass').set "PASSWORD"
browser.button(:'id' => 'u_0_f').click
p "starts"
Watir::Wait.until {
#browser.div(:'class' => '_586i').exists?
browser.textarea(:'id' => 'u_0_1t').exists?
}
p "ends"
```
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/236_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development