Chuck van der Linden

Maltby, Washington State, USA

resolvedtotest.com

Age: 54

Just your typical software testing Sci-fi geek. (if there is such a thing. Been working with computers since the mid 74's, and doing so professionally since the early 80's It's been a long journey from the days of acoustically coupled modems, teletypes, and programs stored on punch-tape

Interests are: Agile Testing; BDD/ATDD; performance and load testing; Webtest UI automation via Watir and Cucumber; Virtualization of testbed systems using Hyper-V.

Also a bit of a hardware geek, building all my own systems other than laptops and tablets, as well as the occasional floating-arm trebuchet enter image description here when I feel the need to have fun sieging the castle or flinging a pumpkin or two.

1d
comment Automation and bypassing Google No CAPTCHA reCAPTCHA
To be fair there is probably a lot of app that can still be tested. Heck you can probably even test things like new user generation or comment generation by making direct api calls or something. Still for stuff protected by captcha you basically gotta tell the powers that be that they cannot have it both ways. The same captcha that blocks robots will block test automation (or it fails at its purpose). Tell your bosses to Pick One: Automated testing for those areas or captcha fully enabled in QA environments.
1d
comment Automation and bypassing Google No CAPTCHA reCAPTCHA
it always amazes me that google does not have some sort of test mode, or at the very least a recommended solution to this kind of problem in their FAQ for their captcha stuff.
Mar
12
comment Datepicker Watir Mobile browser
yes, please EDIT the original question and add the code there as a code block.
Mar
12
comment Error while opening the IE browser through watir
yeah you need devkit See the answers to this question stackoverflow.com/q/8100891/409820
Mar
12
comment Error while opening the IE browser through watir
unless you are doing something really unusual you should only need to require watir, not include it
Mar
12
revised Watir-Webdriver Control Android ChromeDriver on Android Device
edited tags
Mar
12
revised Watir wait_until_present times out instead of returning false
added exception handling example
Mar
12
comment Watir wait_until_present times out instead of returning false
if you are going to use a spinner, it's gotta be really reliable where and when they use it..
Mar
12
revised Watir wait_until_present times out instead of returning false
added 530 characters in body
Mar
12
comment Watir wait_until_present times out instead of returning false
I would encourage you to see if you can talk to the programmer who owns that page, and ask them what is happening under the covers when those things are clicked to expand stuff, and also ask how you might be able to know when it is safe to proceed. maybe they will have some ideas. Also I am guessing maybe you are learning Ruby at the same time you are learning watir?
Mar
12
comment Watir wait_until_present times out instead of returning false
yeah that can be tough. what you could try is make a 'wait for spinner' helper method, it could include some tiny waits like .1 or .2 to allow time for it to appear, then wait while present, then maybe another tiny wait, and another wait while present.. basically to be sure it's not around. a bit of a kludge. interact manually with the site and pay really close attention to delays between when you click, when/if you see a spinner, how long of a delay between the click and the spinner. if it is very consistent, wait until present followed by wait while present might work.
Mar
12
answered Watir-Webdriver EOFError and Errno::ECONNREFUSED
Mar
12
revised Watir-Webdriver EOFError and Errno::ECONNREFUSED
changed tags
Mar
12
revised Watir wait_until_present times out instead of returning false
removed link to question that had nothing at all to do with his issue (totally different kind of timeout problem, between browser and webdriver..
Mar
12
comment Watir-webdriver timing out when asked if element is present?
Yeah that particular error text that does not say something like WHAT it was trying to do when it timed out (like waiting for an element) seems to be indicative of timeouts when webdriver itself is trying to talk to the browser.. the issue is way back there. not in your code or on a webpage.. it is the communication between webdriver and browser that is getting the timeout
Mar
12
comment Watir wait_until_present times out instead of returning false
The way you are using it. include? just tells you if that thing is anywhere in the HTML, it does NOT tell you if the thing is visible or hidden by client side code and/or CSS rules etc. that method is a poor choice for debugging
Mar
12
comment Watir wait_until_present times out instead of returning false
There error you included above has nothing to do with a wait method, it's a click method that fails when it cannot locate the element. whatever was on line 208 if your code at the time you captured that error. Therefore your presumption that .present? is malfunctioning is false.
Mar
12
revised Watir wait_until_present times out instead of returning false
conclusion of problem did not match methods used in code sample above the conclusion
Mar
12
comment Run same cucumber scenario multiple times
If the "login 1000 times" given step worked as expected according to the wording, it would login 1000 times, THEN proceed to the next step.. not what you want.
Mar
12
revised Run same cucumber scenario multiple times
added starting in logged out state as part of scenario
1 2 3 4 5