2009/4/20 Barun Singh <[email protected]>
> found the answer via some more searching; it appears this is a bug with
> webrat that hasn't been fixed yet; if i add
> "selenium.wait_for_page_to_load(5)"
> after the click_button command, things work fine.
>
I hit a similar problem and ended up putting the following in my feature
setup (it would need something similar for the response method but I'm not
actually using that).
Doing it this way means you don't have to put any extras in your features to
work around the bug so once it's fixed you can just remove the hack :)
module Webrat
class SeleniumSession
def response_body
sleep 0.2
selenium.get_html_source
end
end
end
I've not experimented with the sleep length I just tried it with 0.2 and it
worked...
-- roovo
--
roovoweb.com
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users