Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
Chrome on Selenium WebDriver hangs with many images

Solved 1 Answers 49 Views Selenium
0 1
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
Best answer
0
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.
answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...