Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cannot determine loading status" after a successful click that triggers a page load on specific websites #1374

Closed
mdmintz opened this issue Jun 26, 2022 · 5 comments · Fixed by #1377
Assignees
Labels
bug Uh oh... Something needs to be fixed

Comments

@mdmintz
Copy link
Member

mdmintz commented Jun 26, 2022

"cannot determine loading status" after a successful click that triggers a page load on specific websites.

On some very specific websites, (such as https://www.spareroom.co.uk/flatshare/search.pl?searchtype=advanced), there is a rare possibility of reaching "cannot determine loading status" after doing:

  • self.click(selector)
  • Or self.type(selector, text) (where the text ends in "\n")

This was discovered after attempting to find a solution to a StackOverflow question.

If the click succeeds, then don't raise an exception for "cannot determine loading status" if that error shows up after a click.

@mdmintz mdmintz added the bug Uh oh... Something needs to be fixed label Jun 26, 2022
@mdmintz mdmintz self-assigned this Jun 26, 2022
@shailesh31
Copy link

I am running my automation suite on Google Chrome Version 103.0.5060.53 and I am getting the below error.

Step failed
org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status
from unknown error: unexpected command response
(Session info: chrome=103.0.5060.66)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'BSLAP-SSHARMA', ip: '192.168.0.31', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_291'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 103.0.5060.66, chrome: {chromedriverVersion: 103.0.5060.53 (a1711811edd7..., userDataDir: C:\Users\ssharma\AppData\Lo...}, goog:chromeOptions: {debuggerAddress: localhost:56115}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: c14e220b4e68e26417421521432ddc9d
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.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at com.qa.util.ElementUtil.doClick(ElementUtil.java:139)
at com.pages.RegistrationSignUpPage.clickContinueToStep2(RegistrationSignUpPage.java:882)
at steps.RegistrationSignUpPageSteps.user_taps_on_continue_to_step2_button(RegistrationSignUpPageSteps.java:1062)
at ✽.user taps on Continue To Step2 button(file:///C:/Users/ssharma/Automation%20Projects/BoyleSportsWebAutomation/src/test/resources/com/features/RegistrationYourDetails.feature:18)

Whereas when I am running the same suite on Firefox it's running fine.
Is there any issue with Google Chrome Version 103.0.5060.53 or anything else? Please help as I am not getting any results for the same.

Thanks in advance

@mdmintz
Copy link
Member Author

mdmintz commented Jun 30, 2022

@shailesh31 It's probably a new issue on Chrome Version 103, but if you want the fix for your Selenium tests, then you'll need to use SeleniumBase. Your stack trace shows Java, but SeleniumBase is a Python framework.

@shailesh31
Copy link

shailesh31 commented Jun 30, 2022 via email

@mdmintz
Copy link
Member Author

mdmintz commented Jun 30, 2022

@shailesh31 This repo is specifically for the SeleniumBase Python framework. I'm happy to help answer questions regarding that. If you're looking for Java help, this isn't the place. If you're looking to get around the "cannot determine loading status" issue, then upgrade to the latest version of SeleniumBase, where the issue is fixed for tests that use SeleniumBase.

@shailesh31
Copy link

shailesh31 commented Jun 30, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh oh... Something needs to be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants