Я использую каркас робота с библиотекой селена (с некоторыми функциями в 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:
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)
Любая помощь очень ценится.