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

0 like 0 dislike
5.4k views
by Contributing Tester (66 points)
retagged by

The sample script is like it will fetch each record from the list and clicks on it then back to the list screen. So that list has 285 records and per page 30 entries. 

My sample scripts executes until the Page 3. When the fourth page is loads at the time the browser getting crash and closed automatically.

Refer with the below error.   

org.openqa.selenium.WebDriverException: unknown error: session deleted because of page crash

from unknown error: cannot determine loading status
from tab crashed
  (Session info: chrome=71.0.3578.98)
  (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Linux 4.15.0-54-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 102.49 seconds
Build info: version: 'unknown', revision: 'c7b525d', time: '2016-09-01 14:52:30 -0700'
System info: host: 'Thangaraj', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-54-generic', java.version: '1.8.0_201'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{mobileEmulationEnabled=false, timeouts={implicit=0, pageLoad=300000, script=30000}, hasTouchScreen=false, platform=LINUX, acceptSslCerts=false, goog:chromeOptions={debuggerAddress=localhost:44347}, acceptInsecureCerts=false, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=ignore, applicationCacheEnabled=false, rotatable=false, networkConnectionEnabled=false, chrome={chromedriverVersion=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72), userDataDir=/tmp/.com.google.Chrome.rDgW7K}, takesHeapSnapshot=true, pageLoadStrategy=normal, strictFileInteractability=false, databaseEnabled=false, handlesAlerts=true, version=71.0.3578.98, browserConnectionEnabled=false, proxy={}, nativeEvents=true, locationContextEnabled=true, cssSelectorsEnabled=true}]
Session ID: 6f711d3f097bfc705acdc61e720af36c
*** Element info: {Using=xpath, value=//*[@id="member-list-card-id"]/div[3]/div/ul/li[24]/div/div[1]/a/span}Memeber scraping
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:631)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:394)
at org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(RemoteWebDriver.java:478)
at org.openqa.selenium.By$ByXPath.findElements(By.java:356)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:357)
at member.Member.getGroupList(Member.java:136)
at scriptrunner.ScriptRunner.memberScraping(ScriptRunner.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
 

1 Answer

0 like 0 dislike
by Contributing Tester (99 points)
Have you tried updating your chromedriver.exe file? It looks like its time to update your driver file.

Also, see if any plugin is interrupting your execution. If you happen to have any chrome extension (plugin) installed, like antivirus plugin or anti-malware plugin, remove it.

Hope that helps...
by Contributing Tester (66 points)
Some other scripts(5000 steps) executions work with the same chrome driver(Linux environment), But the issue is in this particular script especially while loading fourth-page records.
by Contributing Tester (99 points)
can you try to do perform the same steps manually? If it fails manually, there should be a problem with your web application.
by Contributing Tester (66 points)
It works fine when doing manually. This is the site am trying https://www.meetup.com/bellingham-blockchain/members?.  Am just trying to get each
 member details under the members tap and just displaying the members' name in the console.
by Contributing Tester (66 points)
@Janand Any solution to this. Thanks in advance


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!

...