如何理解硒的错误信息?

时间:2019-03-08 17:13:47

标签: python selenium robotframework

我正在使用带有硒库的机器人框架(Python 2中具有某些功能),所有内容均为最新版本。

我的问题是,无论我在... open_browser(url=url, browser=browser, remote_url=remote_url, desired_capabilities={ 此处 })中输入什么,python都会抱怨

Setup failed:
TypeError: __init__() got an unexpected keyword argument 'nativeEvents'

如果我将其留空,它会哭泣

SessionNotCreatedException: Message: Unable to create session from {
  "desiredCapabilities": {
  },
  "capabilities": {
    "firstMatch": [
      {
      }
    ]
  }
}

编辑:stacktrace(仅当我将其留空时显示)

Stacktrace:
at org.openqa.selenium.remote.server.NewSessionPipeline.lambda$null$4 (NewSessionPipeline.java:76)
at java.util.Optional.orElseThrow (Optional.java:290)
at org.openqa.selenium.remote.server.NewSessionPipeline.lambda$createNewSession$5 (NewSessionPipeline.java:75)
at java.util.Optional.orElseGet (Optional.java:267)
at org.openqa.selenium.remote.server.NewSessionPipeline.createNewSession (NewSessionPipeline.java:73)
at org.openqa.selenium.remote.server.commandhandler.BeginSession.execute (BeginSession.java:65)
at org.openqa.selenium.remote.server.WebDriverServlet.lambda$handle$0 (WebDriverServlet.java:235)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)

非常感谢您的帮助。

0 个答案:

没有答案