selenium webdriver - Sporadic test failures due to unknown error while taking screenshot in Chromedriver -


we starting sporadic test failures when running in chrome. happens 3 out of every 10 tests runs. have no idea why occurring or how fix it. appreciated. below stack trace error see.

org.openqa.selenium.webdriverexception: unknown error: cannot take screenshot unknown error: failed capture tab: unknown error javascript stack: error: failed capture tab: unknown error @ checkforextensionerror (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:14:17) @ object.callback (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:37:5) @ safecallbackapply (extensions::sendrequest:21:15) @ handleresponse (extensions::sendrequest:73:7) (session info: chrome=42.0.2311.135) (driver info: chromedriver=2.9.248315,platform=windows nt 6.1 sp1 x86_64) (warning: server did not provide stacktrace information) command duration or timeout: 13 milliseconds build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40' system info: host: 'rtcits5cg2xy1', ip: '10.14.101.52', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_67'

my best guess browser window closing, screenshot hasn't been taken yet, when tries take screenshot, says "eh, can't access tab" , blows in face.

one step in right direction wrap screenshot taking code in try/catch , log errors test log (simply aren't eating exception). actual exception failed test in stack trace (because shouldn't caught).


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -