リモート環境でselenium-hubを使用してedgeを立ち上げようとしましたが、ブラウザが起動した後、googleの画面が立ち上がる前にエラーになりました。解消方法などあればご教授いただけると助かります。
●エラーメッセージ
Unable to parse remote response: Unknown error
python
1from msedge.selenium_tools import Edge, EdgeOptions 2from msedge.selenium_tools.remote_connection import EdgeRemoteConnection 3from selenium import webdriver 4 5options = EdgeOptions() 6options.use_chromium = True 7 8command_executor = EdgeRemoteConnection('http://192.168.10.81:43568' + '/wd/hub') 9browser = webdriver.Remote( 10 command_executor=command_executor, 11 options=options) #ここでエラー、ブラウザは起動し、初期画面は表示される 12 13browser.get("http://www.google.com") 14browser.quit()
Traceback (most recent call last): File "/home/vagrant/src/test/test_driver.py", line 37, in <module> browser = webdriver.Remote( File "/home/vagrant/env/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "/home/vagrant/env/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/vagrant/env/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/vagrant/env/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: Unable to parse remote response: Unknown error Stacktrace: at org.openqa.selenium.remote.ProtocolHandshake.createSession (ProtocolHandshake.java:115) at org.openqa.selenium.remote.ProtocolHandshake.createSession (ProtocolHandshake.java:74) at org.openqa.selenium.grid.session.remote.RemoteSession$Factory.performHandshake (RemoteSession.java:147) at org.openqa.selenium.grid.session.remote.ServicedSession$Factory.apply (ServicedSession.java:161) at org.openqa.selenium.remote.server.ActiveSessionFactory.lambda$apply$12 (ActiveSessionFactory.java:180) at java.util.stream.ReferencePipeline$3$1.accept (None:-1) at java.util.stream.ReferencePipeline$11$1.accept (None:-1) at java.util.stream.ReferencePipeline$2$1.accept (None:-1) at java.util.Spliterators$ArraySpliterator.tryAdvance (None:-1) at java.util.stream.ReferencePipeline.forEachWithCancel (None:-1) at java.util.stream.AbstractPipeline.copyIntoWithCancel (None:-1) at java.util.stream.AbstractPipeline.copyInto (None:-1) at java.util.stream.AbstractPipeline.wrapAndCopyInto (None:-1) at java.util.stream.FindOps$FindOp.evaluateSequential (None:-1) at java.util.stream.AbstractPipeline.evaluate (None:-1) at java.util.stream.ReferencePipeline.findFirst (None:-1) at org.openqa.selenium.remote.server.ActiveSessionFactory.apply (ActiveSessionFactory.java:183) at org.openqa.selenium.remote.server.NewSessionPipeline.lambda$null$2 (NewSessionPipeline.java:66) at java.util.stream.ReferencePipeline$3$1.accept (None:-1) at java.util.stream.ReferencePipeline$2$1.accept (None:-1) at java.util.Collections$2.tryAdvance (None:-1) at java.util.stream.ReferencePipeline.forEachWithCancel (None:-1) at java.util.stream.AbstractPipeline.copyIntoWithCancel (None:-1) at java.util.stream.AbstractPipeline.copyInto (None:-1) at java.util.stream.AbstractPipeline.wrapAndCopyInto (None:-1) at java.util.stream.FindOps$FindOp.evaluateSequential (None:-1) at java.util.stream.AbstractPipeline.evaluate (None:-1) at java.util.stream.ReferencePipeline.findFirst (None:-1) at org.openqa.selenium.remote.server.NewSessionPipeline.lambda$createNewSession$3 (NewSessionPipeline.java:69) at java.util.stream.ReferencePipeline$3$1.accept (None:-1) at java.util.stream.ReferencePipeline$3$1.accept (None:-1) at java.util.stream.ReferencePipeline$3$1.accept (None:-1) at java.util.stream.DistinctOps$1$2.accept (None:-1) at java.util.stream.ReferencePipeline$2$1.accept (None:-1) at java.util.stream.ReferencePipeline$3$1.accept (None:-1) at java.util.stream.ReferencePipeline$2$1.accept (None:-1) at java.util.stream.Streams$StreamBuilderImpl.tryAdvance (None:-1) at java.util.stream.Streams$ConcatSpliterator.tryAdvance (None:-1) at java.util.stream.ReferencePipeline.forEachWithCancel (None:-1) at java.util.stream.AbstractPipeline.copyIntoWithCancel (None:-1) at java.util.stream.AbstractPipeline.copyInto (None:-1) at java.util.stream.AbstractPipeline.wrapAndCopyInto (None:-1) at java.util.stream.FindOps$FindOp.evaluateSequential (None:-1) at java.util.stream.AbstractPipeline.evaluate (None:-1) at java.util.stream.ReferencePipeline.findFirst (None:-1) at org.openqa.selenium.remote.server.NewSessionPipeline.createNewSession (NewSessionPipeline.java:72) 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 (None:-1) at java.util.concurrent.FutureTask.run (None:-1) at java.util.concurrent.ThreadPoolExecutor.runWorker (None:-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run (None:-1) at java.lang.Thread.run (None:-1)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。