Getting this below errors while executing TESTNG for chrome driver

463 views
Skip to first unread message

raghu bandi

unread,
Mar 9, 2021, 11:43:34 PM3/9/21
to Selenium Users
Starting ChromeDriver 87.0.4280.88 
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[WARNING]: This version of ChromeDriver has not been tested with Chrome version 88.
Mar 10, 2021 10:06:25 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[WARNING]: Timed out connecting to Chrome, retrying...

Arvind Sah

unread,
Mar 10, 2021, 1:46:50 AM3/10/21
to seleniu...@googlegroups.com
Update your chromedriver to version 88.

The issue is your chrome driver can support upto version 87 but your chrome browser is of version 88.

Regards,
Arvind

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1258c159-089b-47ce-9457-c34256d87784n%40googlegroups.com.

raghu bandi

unread,
Mar 10, 2021, 2:38:13 AM3/10/21
to Selenium Users
Hi,

Thank yoy for the response!!

Browser version is 89.0.4389.82 and i have dowloaded chrome driver 89 and i am facing errors.

Please see attached and below.


[RemoteTestNG] detected TestNG version 7.3.0
Starting ChromeDriver 89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}) on port 9829
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Mar 10, 2021 1:05:44 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
FAILED: VerifyOrangeHRM
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for title to be "OrangeHRM - New Level of HR Management". Current title: "" (tried for 30 second(s) with 500 milliseconds interval)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'DESKTOP-RMSM15H', ip: '192.168.32.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.1'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 89.0.4389.82, chrome: {chromedriverVersion: 89.0.4389.23 (61b08ee2c5002..., userDataDir: C:\Users\Administrator\AppD...}, goog:chromeOptions: {debuggerAddress: localhost:56923}, 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:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 70cad71c6e09b347c6b8c8ebcc5b2b72
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272)
at TEST_NG_practice.TC1.VerifyOrangeHRM(TC1.java:41)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)


===============================================
    Default test
    Tests run: 1, Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Passes: 0, Failures: 1, Skips: 0
===============================================

TEST NG error.PNG

Arvind Sah

unread,
Mar 10, 2021, 6:10:10 AM3/10/21
to seleniu...@googlegroups.com
Hello Raghu,

I believe your issue related to browser invocation has been resolved. Now about the second issue, upon checking error logs I can see it failed due to a timeout error which you have to put in script to wait until page title matches the given title. Please try debugging for some time. I am sure you will be able to figure out the root cause.

 Expected condition failed: waiting for title to be "OrangeHRM - New Level of HR Management". Current title: "" (tried for 30 second(s) with 500 milliseconds interval)

Thanks and regards,
Arvind Sah

raghu bandi

unread,
Mar 10, 2021, 8:55:43 AM3/10/21
to Selenium Users
Hi Arvind,

The issue is resolved thank you for the support.

Reply all
Reply to author
Forward
0 new messages