Selenium .JavascriptException : javascript error: Failed to execute 'elementFromPoint' on 'Document' : The provided double value is non-finite

标签 selenium selenium-webdriver webdriver selenium-chromedriver selenium-remotedriver

使用 chrome 78 和 chromedriver78 当我单击音频文件或尝试使用 Selenium 测试停止音频时,我收到此错误。

错误:

org.openqa.selenium.JavascriptException: javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite.

请注意,这种情况仅发生在远程网络驱动程序上,并且不一致。

错误堆栈跟踪:

当“item_1”元素的音频播放器在“[data-rcfid='checkbox_7']”中停止时

org.openqa.selenium.JavascriptException: javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite.
  (Session info: chrome=78.0.3904.70)
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'ip-10-0-10-137', ip: '10.0.10.137', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-71-generic', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 78.0.3904.70, chrome: {chromedriverVersion: 78.0.3904.70 (edb9c9f3de024..., userDataDir: C:\Windows\proxy\scoped_dir...}, goog:chromeOptions: {debuggerAddress: localhost:1674}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: accept, webdriver.remote.sessionid: eb7d4195af3426c181317a16028...}
Session ID: eb7d4195af3426c181317a160286b15e0125b619
    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.RemoteWebDriver.execute(RemoteWebDriver.java:545)
    at org.openqa.selenium.remote.RemoteWebDriver.perform(RemoteWebDriver.java:611)
    at org.openqa.selenium.interactions.Actions$BuiltAction.perform(Actions.java:638)
    at webDriver.Driver.click(Driver.java:147)
    at pageObjects.ActivityPageObject.clickAudioInlineStopIn(ActivityPageObject.java:205)
    at stepDefinition.Activity.theAudioPlayerOfTheElementIsStoppedIn(Activity.java:61)
    at ✽.When the audio player of the "item_1" element is stopped in "[data-rcfid='checkbox_7']"(/opt/atlassian/bamboo-home/xml-data/build-dir/16744451/RCF1-RMIT-BROW3/rcf-automation-tests/src/test/resources/featureFiles/interactions/markedInteractions/CheckBox.feature:433)

最佳答案

我有同样的问题,观察结果是,相同的 xpath 有多个元素。找到不同的唯一xpath解决了它

关于 Selenium .JavascriptException : javascript error: Failed to execute 'elementFromPoint' on 'Document' : The provided double value is non-finite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58997720/

相关文章:

java - 无法通过appium在android模拟器中启动计算器

python - 如何将selenium浏览器带到前台?

python - 带有 Selenium 测试的 Django channel 2 失败

selenium - 使用 phpunit/selenium 保持 selenium 浏览器打开

java - 启动 Selendroid 中的异常

java - 如何使用 Selenium 在 PhantomJS 中设置代理身份验证?

internet-explorer - Selenium Webdriver 和 IE 中的基本身份验证

java - 使用 Selenium WebDriver(又名 Selenium 2.0)鼠标向下滚动 - JAVA

java - 如何在 http ://jqueryui. com 中使用 RadioButton 场景的相对 Xpath 定位元素

java - Selenium webdriver 可以附加到已经打开的浏览器窗口吗?