+1
Under review

Unable to run Selenium Tests

alexandriag 8 year бұрын updated by tech 8 year бұрын 1

Remote browser: chrome

Unable to successfully run a selenium test, I have checked that this test runs successfully in firefox but each time I run it through Lean testing I get the following error.  Any ideas? 

ERROR Command#1: open("/") => [Error: WebDriverException - unknown error: session deleted because of page crashfrom tab crashed  (Session info: chrome=50.0.2661.75)  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 4.4.5-15.26.amzn1.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)Command duration or timeout: 7.20 secondsBuild info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'System info: host: 'a0dc82a03106', ip: '172.17.0.14', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.5-15.26.amzn1.x86_64', java.version: '1.8.0_02-Ubuntu'Driver info: org.openqa.selenium.chrome.ChromeDriverCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a), userDataDir=/tmp/.com.google.Chrome.PlklgG}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.75, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]Session ID: ebd1a8f1611485a9b53ac35d18d619d4Command duration or timeout: 7.68 secondsBuild info: version: 'unknown', revision: 'unknown', time: 'unknown'System info: host: 'ip-10-0-14-44', ip: '10.0.14.44', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.8-20.46.amzn1.x86_64', java.version: '1.7.0_101'Session ID: 76d1e864-2bdc-4085-af40-1858196066d1Driver info: org.openqa.selenium.remote.RemoteWebDriverCapabilities [{platform=LINUX, javascriptEnabled=true, acceptSslCerts=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.PlklgG, chromedriverVersion=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, webdriver.remote.sessionid=76d1e864-2bdc-4085-af40-1858196066d1, version=50.0.2661.75, takesHeapSnapshot=true, databaseEnabled=false, cssSelectorsEnabled=true, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}] (ErrorHandler.createThrowable(ErrorHandler.java:206) / ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) / RemoteWebDriver.execute(RemoteWebDriver.java:678) / RemoteWebDriver.get(RemoteWebDriver.java:316) / Open.executeImpl(Open.java:36) / AbstractCommand.execute(AbstractCommand.java:145) / CommandList.doCommand(CommandList.java:96) / ScreenshotInterceptor.invoke(ScreenshotInterceptor.java:18) / AbstractDoCommandInterceptor.invoke(AbstractDoCommandInterceptor.java:29) / HighlightInterceptor.invoke(HighlightInterceptor.java:28) / AbstractDoCommandInterceptor.invoke(AbstractDoCommandInterceptor.java:29) / CommandLogInterceptor.invoke(CommandLogInterceptor.java:72) / AbstractDoCommandInterceptor.invoke(AbstractDoCommandInterceptor.java:29) / CommandList.execute(CommandList.java:150) / TestCase.execute(TestCase.java:299) / ExecuteTestCaseInterceptor.invoke(ExecuteTestCaseInterceptor.java:49) / AbstractExecuteTestCaseInterceptor.invoke(AbstractExecuteTestCaseInterceptor.java:29) / TestSuite.execute(TestSuite.java:158) / ExecuteTestSuiteInterceptor.invoke(ExecuteTestSuiteInterceptor.java:49) / AbstractExecuteTestSuiteInterceptor.invoke(AbstractExecuteTestSuiteInterceptor.java:29) / Runner.execute(Runner.java:568) / Runner.run(Runner.java:612) / Main.run(Main.java:83) / Main.main(Main.java:213))] Failed to get page information: [no such session  (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 4.4.5-15.26.amzn1.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)Command duration or timeout: 1 milliseconds]
End(8.309sec): TestCase[Lean_testing] (/tmp/phpbNdia9)
End(0.000sec): TestSuite[Lean_testing] (/tmp/phpbNdia9)
Exit code: 3