Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
177 views
in Selenium by
recategorized by
I used ChromeDriver for automation web page interaction for a while, however, there is a random issue I'm not able to resolve. I hope to search help in this community.
 
I am automating one of my scripts on chrome using Selenium Webdriver. There are many images on the page. Below is my configuration
 
ChromeDriver: I've tried 2.12 - 2.16, all of them has this issue
Chrome: Version 43.0.2357.134 m
Selenium: 2.44
JAVA: 1.7.79 X86
 
Symptom: During automation, when I am on the last page, chrome hangs and in status bar of chrome there are some words saying "waiting for pda-ads.amazon.com"...
 
I've tried below possible ways.
 
I had a callable task with timeout of 10 sec. In case it hangs on, throw and exception and continue. However webdriver is still stuck and I can not access information provided on last page.
 
 
driver.manage().timeouts()
.implicitlyWait(timeOut, TimeUnit.MILLISECONDS)
.pageLoadTimeout(timeOut * 3, TimeUnit.SECONDS)
.setScriptTimeout(timeOut * 3, TimeUnit.SECONDS)

1 Answer

0 like 0 dislike
by
selected by
 
Best answer
If you are starting it as chromewebdriver I would suggest you to setup a grid and start it as a RemoteWebDriver as if you starting as an instanace of an Eclipse it will have less memory.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...