I think folks are using this:

http://watirwebdriver.com/headless/




________________________________
 From: Mont Rothstein <[email protected]>
To: [email protected] 
Cc: John Fitisoff <[email protected]> 
Sent: Friday, July 19, 2013 12:09 PM
Subject: Re: [wtr-general] Intermittent failure of when_present
 


John,

Thank you very much for your reply and suggestions.  While elements not being 
visible due to scrolling are not an issue in this case it did lead me to the 
answer.  The test I have been trying to run is quite long.  Therefore I had 
been going about my other business on the same workstation that is executing 
the test...and covering up the IE window in the process.  This turned out to be 
the issue (or at least 99% of it).  I previously could not complete three full 
execution loops within my test.  I just completed 50 leaving IE uncovered!

I did still have an issue with my logout (each pass through the loop starts a 
new session, logs in, performs some tasks, logs out, and closes the session) 
that I had to resolve before the full 50 loops would work.  This command failed 
intermittently: $b.link(:text, 'Log Out').when_present.click

I added a "sleep 1" before it and it worked fine.  I'm not wild about this 
solution but since I am already using a when_present I don't know what else to 
do.  One interesting thing is that none of these failed when_present errors are 
hitting the 30 sec timeout.  I'll go file a Watir-webdriver bug.

OK, all of that said, I am now wondering about automated execution of tests as 
part of our build process.  Obviously IE must be physically displayed.  How are 
people dealing with this?

-Mont

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.
 
[email protected]
http://groups.google.com/group/watir-general
[email protected]
 
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to