SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.63k stars 8.18k forks source link

[πŸ› Bug]: org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify #12187

Closed smarak111 closed 1 year ago

smarak111 commented 1 year ago

What happened?

org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://xxx.abcddddd.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: chrome=114.0.5735.110) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'XXXX', ip: 'XXXXX', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 114.0.5735.110, chrome: {chromedriverVersion: 114.0.5735.16 (7e1ff058633f..., userDataDir: C:\Users\E10688~1\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:61386}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 3dedc4d3fa5491198e00133e6599a3fa *** Element info: {Using=id, value=dcgTitle} 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.RemoteWebDriver.findElement(RemoteWebDriver.java:323) at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:372) at org.openqa.selenium.By$ById.findElement(By.java:188) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205) at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:249) at com.rc.alm.it.tests.utilities.WebElementProcessorImpl.findWebElement(WebElementProcessorImpl.java:405) at com.rc.alm.it.tests.utilities.WebElementProcessorImpl.enterValue(WebElementProcessorImpl.java:174) at com.rc.alm.it.tests.pageobjects.JiraBasePage.enterDataToField(JiraBasePage.java:189) at com.rc.alm.it.smokeTests.common.SmokeTest.java:94) 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:124) at org.testng.internal.Invoker.invokeMethod(Invoker.java:580) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.privateRun(TestRunner.java:648) at org.testng.TestRunner.run(TestRunner.java:505) at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) at org.testng.TestNG.runSuites(TestNG.java:1049) at org.testng.TestNG.run(TestNG.java:1017) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

How can we reproduce the issue?

This issue is observed when we are trying to perform actions on the SVG elements.

Relevant log output

org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function
at Object.stringify

Operating System

Windows 10

Selenium version

3.141.59

What are the browser(s) and version(s) where you see this issue?

Chrome-114, Firefox-113

What are the browser driver(s) and version(s) where you see this issue?

Chrome 114.0.5735.110

Are you using Selenium Grid?

No

github-actions[bot] commented 1 year ago

@smarak111, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

diemol commented 1 year ago

I will add the template label, but I just wanted to comment that we cannot really do anything with this issue report, there is no absolute way to reproduce this or understand it from the log. We really need a way to reproduce the issue, or in the end it will be closed.

github-actions[bot] commented 1 year ago

Hi, @smarak111. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

diemol commented 1 year ago

Plus, we only check when the version being used is the latest.

touero commented 1 year ago

Sorry, I'm not sure if there's a problem writing it here, I used selenium with python, Similar issues have also been found. python version: 3.8 selenium version: 3.141.0 Chorme version: 114.0.5735.110

File "WebDriverEx.py", line 349, in wait_eles_by_xpath return WebDriverWait(self.driver, timeout).until( File "\lib\site-packages\selenium\webdriver\support\wait.py", line 71, in until value = method(self._driver) File "\venv\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 161, in call return _find_elements(driver, self.locator) File "venv\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 422, in _find_elements raise e File "\venv\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 420, in _find_elements return driver.find_elements(*by) File "\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1005, in find_elements return self.execute(Command.FIND_ELEMENTS, { File "\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.callFunctionOn threw exception: TypeError: JSON.stringify is not a function at buildError (:323:18) (Session info: chrome=114.0.5735.110)

Plus, def wait_eles_by_xpath will return a List[WebElement] that is result of WebDriverWait(self.driver, timeout).unti(EC.presence_of_all_elements_located((By.XPATH, xpath)))

titusfortner commented 1 year ago

We can't fix problems in an old version. Please only report if it can be repeated in Selenium 4.10

smarak111 commented 1 year ago

The issue is also observed on Selenium-java version -4.10.0

I can't give you website link since it is an internal website, However, if you have Jira, try to add the Atlassian Jira gadgets to the dashboard and try to perform operations on the gadgets through selenium.

Note: This is issue is a major issue, it was working as expected till chrome version 112.x

Logs for your Information:

org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: chrome=114.0.5735.110) Build info: version: '4.10.0', revision: 'c14d967899' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: org.openqa.selenium.chrome.ChromeDriver Command: [18a237d146196f96268564a359ad0768, findElement {using=xpath, value=(//input[@value='Save' and @class='button save'])[1]}] Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 114.0.5735.110, chrome: {chromedriverVersion: 114.0.5735.16 (7e1ff058633f..., userDataDir: C:\Users\E10688~1\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:64930}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:64930/devtoo..., se:cdpVersion: 114.0.5735.110, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 18a237d146196f96268564a359ad0768

diemol commented 1 year ago

@smarak111 How can we reproduce it? Useless to say it doesn't work without instructions that show how to reproduce it.

titusfortner commented 1 year ago
  1. Please run with logging turned on so we can see what call was being sent to the driver that resulted in the error β€” https://www.selenium.dev/documentation/webdriver/troubleshooting/logging/
  2. If it is working for Chrome v113 and not Chrome v114, it is likely something that Google will need to fix and not something we can do anything about in our project.
smarak111 commented 1 year ago

In my opinion this is not related to chrome browser even the same failure is observed for the Microsoft Edge also. I turned on the Logger as suggested by you: From Chrome Browser:

Jun 10, 2023 2:55:01 PM org.openqa.selenium.remote.service.DriverService$Builder getLogOutput INFO: Driver logs no longer sent to console by default; https://www.selenium.dev/documentation/webdriver/drivers/service/#setting-log-output Jun 10, 2023 2:55:02 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: newSession [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=], extensions: []}}]}] Jun 10, 2023 2:55:02 PM org.openqa.selenium.remote.service.DriverService start FINE: Starting driver at C:\Users\User_Name.cache\selenium\chromedriver\win32\114.0.5735.16\chromedriver.exe with [--port=24570] Jun 10, 2023 2:55:02 PM org.openqa.selenium.net.UrlChecker waitUntilAvailable FINE: Waiting for [http://localhost:24570/status] Jun 10, 2023 2:55:02 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:24570/status Jun 10, 2023 2:55:02 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:24570/status Jun 10, 2023 2:55:02 PM sun.net.www.protocol.http.HttpURLConnection writeRequests FINE: sun.net.www.MessageHeader@6b88a2a55 pairs: {GET /status HTTP/1.1: null}{User-Agent: Java/1.8.0_131}{Host: localhost:24570}{Accept: text/html, image/gif, image/jpeg, ; q=.2, /; q=.2}{Connection: keep-alive} Jun 10, 2023 2:55:02 PM sun.net.www.protocol.http.HttpURLConnection getInputStream0 FINE: sun.net.www.MessageHeader@2e8a31b04 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 248}{Content-Type: application/json; charset=utf-8}{cache-control: no-cache} Jun 10, 2023 2:55:04 PM org.openqa.selenium.remote.ProtocolHandshake createSession FINE: Detected upstream dialect: W3C Jun 10, 2023 2:55:04 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: newSession (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: {acceptInsecureCerts=false, browserName=chrome, browserVersion=114.0.5735.110, chrome={chromedriverVersion=114.0.5735.16 (7e1ff058633f5b79b1cd7479aca585ba385519d8-refs/branch-heads/5735@{#182}), userDataDir=C:\Users\User-name\AppData\Local\Temp\scoped_dir46052_199083487}, goog:chromeOptions={debuggerAddress=localhost:51892}, networkConnectionEnabled=false, pageLoadStrategy=normal, 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:extension:minPinLength=true, webauthn:extension:prf=true, webauthn:virtualAuthenticators=true}) Jun 10, 2023 2:55:04 PM org.openqa.selenium.devtools.CdpEndpointFinder getReportedUri FINE: URI found: http://localhost:51892 Jun 10, 2023 2:55:04 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch FINE: Found exact CDP implementation for version 114 Jun 10, 2023 2:55:04 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: maximizeCurrentWindow [50bbb06e6988774925050c7131bc12c9, maximizeCurrentWindow {}] Jun 10, 2023 2:55:05 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"height":840,"width":1552,"x":-8,"y":-8}} Jun 10, 2023 2:55:05 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: maximizeCurrentWindow (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: {height=840, width=1552, x=-8, y=-8}) Jun 10, 2023 2:55:05 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: get [50bbb06e6988774925050c7131bc12c9, get {url=https://xyz.com/issues/login.jsp?os_destination=%2Fsecure%2FDashboard.jspa%3FselectPageId%3D60708}] Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: get (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: null) Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [50bbb06e6988774925050c7131bc12c9, findElement {using=id, value=login-form-username}] Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"element-6066-11e4-a52e-4f735466cecf":"04D3A78939270B147468A9359331943D_element_9"}} Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: {element-6066-11e4-a52e-4f735466cecf=04D3A78939270B147468A9359331943D_element_9}) Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: sendKeysToElement [50bbb06e6988774925050c7131bc12c9, sendKeysToElement {id=04D3A78939270B147468A9359331943D_element_9, value=[Ljava.lang.CharSequence;@72c927f1}] Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: sendKeysToElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: null) Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [50bbb06e6988774925050c7131bc12c9, findElement {using=id, value=login-form-password}] Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"element-6066-11e4-a52e-4f735466cecf":"04D3A78939270B147468A9359331943D_element_4"}} Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: {element-6066-11e4-a52e-4f735466cecf=04D3A78939270B147468A9359331943D_element_4}) Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: sendKeysToElement [50bbb06e6988774925050c7131bc12c9, sendKeysToElement {id=04D3A78939270B147468A9359331943D_element_4, value=[Ljava.lang.CharSequence;@3d3f761a}] Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: sendKeysToElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: null) Jun 10, 2023 2:55:11 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [50bbb06e6988774925050c7131bc12c9, findElement {using=id, value=login-form-submit}] Jun 10, 2023 2:55:12 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"element-6066-11e4-a52e-4f735466cecf":"04D3A78939270B147468A9359331943D_element_12"}} Jun 10, 2023 2:55:12 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: {element-6066-11e4-a52e-4f735466cecf=04D3A78939270B147468A9359331943D_element_12}) Jun 10, 2023 2:55:12 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: clickElement [50bbb06e6988774925050c7131bc12c9, clickElement {id=04D3A78939270B147468A9359331943D_element_12}] Jun 10, 2023 2:55:16 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 2:55:16 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: clickElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: null) Jun 10, 2023 2:55:17 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: switchToFrame [50bbb06e6988774925050c7131bc12c9, switchToFrame {id=0}] Jun 10, 2023 2:55:17 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 2:55:17 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: switchToFrame (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 0, Value: null) Jun 10, 2023 2:55:22 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [50bbb06e6988774925050c7131bc12c9, findElement {using=id, value=digTitle}] Jun 10, 2023 2:55:22 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 500 and content: {"value":{"error":"unknown error","message":"unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function\n at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27)\n at buildError (\u003Canonymous>:323:18)\n (Session info: chrome=114.0.5735.110)","stacktrace":"Backtrace:\n\tGetHandleVerifier [0x00FE6E73+48323]\n\t(No symbol) [0x00F79661]\n\t(No symbol) [0x00E85308]\n\t(No symbol) [0x00E884D6]\n\t(No symbol) [0x00E89991]\n\t(No symbol) [0x00E89A30]\n\t(No symbol) [0x00EB07BC]\n\t(No symbol) [0x00EB0CDB]\n\t(No symbol) [0x00EDE3D2]\n\t(No symbol) [0x00ECA924]\n\t(No symbol) [0x00EDCAC2]\n\t(No symbol) [0x00ECA6D6]\n\t(No symbol) [0x00EA847C]\n\t(No symbol) [0x00EA957D]\n\tGetHandleVerifier [0x0124FD5D+2575277]\n\tGetHandleVerifier [0x0128F86E+2836158]\n\tGetHandleVerifier [0x012896DC+2811180]\n\tGetHandleVerifier [0x010741B0+626688]\n\t(No symbol) [0x00F8314C]\n\t(No symbol) [0x00F7F4B8]\n\t(No symbol) [0x00F7F59B]\n\t(No symbol) [0x00F721B7]\n\tBaseThreadInitThunk [0x765100C9+25]\n\tRtlGetAppContainerNamedObjectPath [0x77E57B4E+286]\n\tRtlGetAppContainerNamedObjectPath [0x77E57B1E+238]\n"}} Jun 10, 2023 2:55:22 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Processing an error Jun 10, 2023 2:55:22 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 50bbb06e6988774925050c7131bc12c9, Status: 13, Value: org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: chrome=114.0.5735.110) Build info: version: '4.10.0', revision: 'c14d967899' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: driver.version: RemoteWebDriver) Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: chrome=114.0.5735.110) Build info: version: '4.10.0', revision: 'c14d967899' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: org.openqa.selenium.chrome.ChromeDriver Command: [50bbb06e6988774925050c7131bc12c9, findElement {using=id, value=digTitle}] Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 114.0.5735.110, chrome: {chromedriverVersion: 114.0.5735.16 (7e1ff058633f..., userDataDir: C:\Users\User\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:51892}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:51892/devtoo..., se:cdpVersion: 114.0.5735.110, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 50bbb06e6988774925050c7131bc12c9 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.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:199) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:132) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:51) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:191) at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:196) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:171) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:531) at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165) at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:59) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:350) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:344) at com.rc.alm.it.tests.wikibasetests.SeleniumIssue.main(SeleniumIssue.java:58)

Sample Script: image

From Edge Browser:

Jun 10, 2023 3:10:56 PM org.openqa.selenium.remote.service.DriverService$Builder getLogOutput INFO: Driver logs no longer sent to console by default; https://www.selenium.dev/documentation/webdriver/drivers/service/#setting-log-output Jun 10, 2023 3:10:57 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: newSession [null, newSession {capabilities=[Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--remote-allow-origins=], extensions: []}}]}] Jun 10, 2023 3:10:57 PM org.openqa.selenium.remote.service.DriverService start FINE: Starting driver at C:\Users\UserName.cache\selenium\msedgedriver\win64\114.0.1823.43\msedgedriver.exe with [--port=16126] Jun 10, 2023 3:10:57 PM org.openqa.selenium.net.UrlChecker waitUntilAvailable FINE: Waiting for [http://localhost:16126/status] Jun 10, 2023 3:10:57 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:16126/status Jun 10, 2023 3:10:57 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:16126/status Jun 10, 2023 3:10:58 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:16126/status Jun 10, 2023 3:10:58 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:16126/status Jun 10, 2023 3:10:59 PM org.openqa.selenium.net.UrlChecker lambda$waitUntilAvailable$1 FINE: Polling http://localhost:16126/status Jun 10, 2023 3:10:59 PM sun.net.www.protocol.http.HttpURLConnection writeRequests FINE: sun.net.www.MessageHeader@687e4f825 pairs: {GET /status HTTP/1.1: null}{User-Agent: Java/1.8.0_131}{Host: localhost:16126}{Accept: text/html, image/gif, image/jpeg, ; q=.2, /; q=.2}{Connection: keep-alive} Jun 10, 2023 3:10:59 PM sun.net.www.protocol.http.HttpURLConnection getInputStream0 FINE: sun.net.www.MessageHeader@2d7ccce94 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 218}{Content-Type: application/json; charset=utf-8}{cache-control: no-cache} Jun 10, 2023 3:11:00 PM org.openqa.selenium.remote.ProtocolHandshake createSession FINE: Detected upstream dialect: W3C Jun 10, 2023 3:11:00 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: newSession (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: {acceptInsecureCerts=false, browserName=msedge, browserVersion=114.0.1823.41, ms:edgeOptions={debuggerAddress=localhost:54230}, msedge={msedgedriverVersion=114.0.1823.43 (ef5b3acd8c1da336e811e5d8552a61c0965816bb), userDataDir=C:\Users\User_Name\AppData\Local\Temp\scoped_dir46064_237817539}, networkConnectionEnabled=false, pageLoadStrategy=normal, 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:extension:minPinLength=true, webauthn:extension:prf=true, webauthn:virtualAuthenticators=true}) Jun 10, 2023 3:11:00 PM org.openqa.selenium.devtools.CdpEndpointFinder getReportedUri FINE: URI found: http://localhost:54230 Jun 10, 2023 3:11:00 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch FINE: Found exact CDP implementation for version 114 Jun 10, 2023 3:11:00 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: maximizeCurrentWindow [60a974ae0b4cda71f65db0139c243ac8, maximizeCurrentWindow {}] Jun 10, 2023 3:11:01 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"height":840,"width":1552,"x":-8,"y":-8}} Jun 10, 2023 3:11:01 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: maximizeCurrentWindow (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: {height=840, width=1552, x=-8, y=-8}) Jun 10, 2023 3:11:01 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: get [60a974ae0b4cda71f65db0139c243ac8, get {url=https://xyz.com/issues/login.jsp?os_destination=%2Fsecure%2FDashboard.jspa%3FselectPageId%3D60708}] Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: get (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: null) Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [60a974ae0b4cda71f65db0139c243ac8, findElement {using=id, value=login-form-username}] Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"element-6066-11e4-a52e-4f735466cecf":"B22EC2692BCCC800E9B5EE24A9F78453_element_5"}} Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: {element-6066-11e4-a52e-4f735466cecf=B22EC2692BCCC800E9B5EE24A9F78453_element_5}) Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: sendKeysToElement [60a974ae0b4cda71f65db0139c243ac8, sendKeysToElement {id=B22EC2692BCCC800E9B5EE24A9F78453_element_5, value=[Ljava.lang.CharSequence;@1e34c607}] Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: sendKeysToElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: null) Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [60a974ae0b4cda71f65db0139c243ac8, findElement {using=id, value=login-form-password}] Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"element-6066-11e4-a52e-4f735466cecf":"B22EC2692BCCC800E9B5EE24A9F78453_element_4"}} Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: {element-6066-11e4-a52e-4f735466cecf=B22EC2692BCCC800E9B5EE24A9F78453_element_4}) Jun 10, 2023 3:11:07 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: sendKeysToElement [60a974ae0b4cda71f65db0139c243ac8, sendKeysToElement {id=B22EC2692BCCC800E9B5EE24A9F78453_element_4, value=[Ljava.lang.CharSequence;@5710768a}] Jun 10, 2023 3:11:08 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 3:11:08 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: sendKeysToElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: null) Jun 10, 2023 3:11:08 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [60a974ae0b4cda71f65db0139c243ac8, findElement {using=id, value=login-form-submit}] Jun 10, 2023 3:11:08 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":{"element-6066-11e4-a52e-4f735466cecf":"B22EC2692BCCC800E9B5EE24A9F78453_element_13"}} Jun 10, 2023 3:11:08 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: {element-6066-11e4-a52e-4f735466cecf=B22EC2692BCCC800E9B5EE24A9F78453_element_13}) Jun 10, 2023 3:11:08 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: clickElement [60a974ae0b4cda71f65db0139c243ac8, clickElement {id=B22EC2692BCCC800E9B5EE24A9F78453_element_13}] Jun 10, 2023 3:11:12 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 3:11:12 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: clickElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: null) Jun 10, 2023 3:11:12 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: switchToFrame [60a974ae0b4cda71f65db0139c243ac8, switchToFrame {id=0}] Jun 10, 2023 3:11:12 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 200 and content: {"value":null} Jun 10, 2023 3:11:12 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: switchToFrame (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 0, Value: null) Jun 10, 2023 3:11:17 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executing: findElement [60a974ae0b4cda71f65db0139c243ac8, findElement {using=id, value=digTitle}] Jun 10, 2023 3:11:17 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Decoding response. Response code was: 500 and content: {"value":{"error":"unknown error","message":"unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function\n at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27)\n at buildError (\u003Canonymous>:323:18)\n (Session info: MicrosoftEdge=114.0.1823.41)","stacktrace":"Backtrace:\n\tGetHandleVerifier [0x00007FF6E832B582+64226]\n\tMicrosoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E82BBB42+770978]\n\t(No symbol) [0x00007FF6E807CC3C]\n\t(No symbol) [0x00007FF6E8081B07]\n\t(No symbol) [0x00007FF6E8083A44]\n\t(No symbol) [0x00007FF6E8083B30]\n\t(No symbol) [0x00007FF6E80C0766]\n\t(No symbol) [0x00007FF6E80C0D5A]\n\t(No symbol) [0x00007FF6E80FAC07]\n\t(No symbol) [0x00007FF6E80DF02F]\n\t(No symbol) [0x00007FF6E80B4BA1]\n\t(No symbol) [0x00007FF6E80F7FB1]\n\t(No symbol) [0x00007FF6E80DEDC3]\n\t(No symbol) [0x00007FF6E80B3BDC]\n\t(No symbol) [0x00007FF6E80B2DC6]\n\t(No symbol) [0x00007FF6E80B4354]\n\tMicrosoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00007FF6E8508E29+1319081]\n\t(No symbol) [0x00007FF6E812BEE8]\n\tMicrosoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E8207AB1+33553]\n\tMicrosoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E81FFEEF+1871]\n\tMicrosoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00007FF6E8507A43+1313987]\n\tMicrosoft::Applications::Events::ILogConfiguration::operator [0x00007FF6E82C4178+20232]\n\tMicrosoft::Applications::Events::ILogConfiguration::operator [0x00007FF6E82C0794+5412]\n\tMicrosoft::Applications::Events::ILogConfiguration::operator* [0x00007FF6E82C088C+5660]\n\tMicrosoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E82B4541+740769]\n\tBaseThreadInitThunk [0x00007FFAF0F27614+20]\n\tRtlUserThreadStart [0x00007FFAF2F026A1+33]\n"}} Jun 10, 2023 3:11:17 PM org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec decode FINE: Processing an error Jun 10, 2023 3:11:17 PM org.openqa.selenium.remote.RemoteWebDriver log FINE: Executed: findElement (Response: SessionID: 60a974ae0b4cda71f65db0139c243ac8, Status: 13, Value: org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: MicrosoftEdge=114.0.1823.41) Build info: version: '4.10.0', revision: 'c14d967899' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: driver.version: RemoteWebDriver) Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://xyz.com/issues/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: MicrosoftEdge=114.0.1823.41) Build info: version: '4.10.0', revision: 'c14d967899' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: org.openqa.selenium.edge.EdgeDriver Command: [60a974ae0b4cda71f65db0139c243ac8, findElement {using=id, value=digTitle}] Capabilities {acceptInsecureCerts: false, browserName: msedge, browserVersion: 114.0.1823.41, ms:edgeOptions: {debuggerAddress: localhost:54230}, msedge: {msedgedriverVersion: 114.0.1823.43 (ef5b3acd8c1d..., userDataDir: C:\Users\User_Name\AppData\L...}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:54230/devtoo..., se:cdpVersion: 114.0.1823.41, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 60a974ae0b4cda71f65db0139c243ac8 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.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:199) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:132) at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:51) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:191) at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:196) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:171) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:531) at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165) at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:59) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:350) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:344) at com.rc.alm.it.tests.wikibasetests.SeleniumIssue.main(SeleniumIssue.java:44)

titusfortner commented 1 year ago

Microsoft Edge is based on Chromium. I would be very surprised if a bug in Chrome did not also exist in Edge. If you also saw the same behavior in Firefox it would be different.

I'm curious if you tried to locate that element without using the title if you get the same error. Regardless, Selenium is doing the right thing here and the driver is giving the wrong response. It would be great if you could find a public URL that reproduces this behavior, but otherwise, look at the link below for where to file a new ticket.

github-actions[bot] commented 1 year ago

Hi, @smarak111. This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you.

smarak111 commented 1 year ago

I have created the issue with the G-chromedriver team and the ticket #
https://bugs.chromium.org/p/chromedriver/issues/detail?id=4481&q=Runtime.callFunctionOn&can=2

I'll wait till their suggestion on this ticket after that if required need to reopen this issue, thanks for the support.

kumargou commented 1 year ago

Hi all, I too face the similar kind of issue on Chrome driver version: 114.0.5735.90 as well Edge driver version: 115.0.1901.183. with selenium-3.141.0 Issue Reproduce steps: One can reproduce the issue in Atllasian Jira ->Specific Project->Go to project summary page where we have some Gadgets with frames. (i.e. Left Top First icon which represents the Project Summary. Eg URL such as https://jira.x.x.com/prjects/xx/summary) . once we launch the page and when we try to access any of the fields like Eg: Bug,email id of the bug creator from that gadget //iframe[@id="gadget-1"] , the selenium is throwing the below error.

Error Description: File "jira_v1.0.py", line 202, in element1 = driver.find_elements_by_xpath('(//img[@title="Bug"])[1]') File "C:\Program Files\Python37\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\remote\webdriver.py", line 410, in find_elements_by_xpath return self.find_elements(by=By.XPATH, value=xpath) File "C:\Program Files\Python37\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\remote\webdriver.py", line 1007, in find_elements 'value': value})['value'] or [] File "C:\Program Files\Python37\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Program Files\Python37\lib\site-packages\selenium-3.141.0-py3.7.egg\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.callFunctionOn threw exception: TypeError: value.hasOwnProperty is not a function at Object.stringify (https://jira.xx.xx.com/plugins/servlet/gadgets/js/auth-refresh.js?v=5d172772d3da3e73329fba55c6e2a2bd&container=atlassian&debug=0:210:27) at buildError (:323:18) (Session info: MicrosoftEdge=115.0.1901.183)

If any solution already exists for this kind of problem request to share here. Thanks.

titusfortner commented 1 year ago

per the link in the previous comment, it looks like Google has fixed it for chromedriver v117, we'll have to wait and see if it gets backported to v116.

github-actions[bot] commented 10 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.