firewatir

watir-webdriver wait for page load

丶灬走出姿态 提交于 2019-12-02 19:15:48
Using watir-webdriver , how do i wait for a page to load after i click a link? At the moment i am doing: sleep n But this is not ideal as the page response varies so much. Is there a method to test whether the page is ready or whether there is a certain element in the page. I understand in the normal watir gem there is Watir::Waiter.wait_until or something similar, but I cannot see this in the webdriver version. marc I don't know if they're the best way, but this is how I'm handling this for waiting for updating div to clear: while browser.div(:id=>"updating_div").visible? do sleep 1 end This

FireWatir TextField set : Very Slow

对着背影说爱祢 提交于 2019-12-01 23:51:13
When calling the set method of a text_field in ruby, the text is being entered at a very slow rate in the browser, roughly at 1 character / second. Environment Information: Ubuntu 10.10 FireFox 3.6.13 JSSh 0.9 Ruby 1.9.2p136 FireWatir 1.7.1 Kindly advice. Thanks in advance. It is a known bug: WTR-397 Workaround is to use watir-webdriver or to use value= instead of set . Example: browser.text_field(how => what).value= "string" shay solve slow key type issue on firewatir: need to edit the file text_field.rb enter to the folder #>cd /usr/lib/ruby/gems/1.8/gems/firewatir-1.7.1/lib/firewatir