Ruby\Watir Hangs if the browser is not loaded completely

V

Vishwanath Uppala

Hi all,

The watir just hangs up looking for page to download completely.
I want the test suite to continue with next test case if page does not
get downloaded within specified time.

Is there any way by which We can accomplish this?

Help in this regard would be greatly appreciated.

Sample Code:

require 'watir'
include Watir
@ie = IE.new
#----> The script gets hanged up with below stmt in case browser is not
# loaded completely
@ie.goto('http://vodafone.in')
@ie.bring_to_front()
@ie.maximize()

Even the statement below doesn't work here
@ie.wait(10)


Thanks
Vishwanath Uppala
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top