Share via

selenium程序java运行在linux

yymEL 1 Reputation point
2023-10-19T03:39:44.31+00:00
Invalid --log-level value.
Unable to initialize logging. Exiting...
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: Microsoft Edge failed to start: exited normally.
  (session not created: DevToolsActivePort file doesn't exist)
  (The process started from msedge location /usr/bin/msedgedriver is no longer running, so msedgedriver is assuming that msedge has crashed.)
Build info: version: '4.1.4', revision: '535d840ee2'
System info: host: 'e9f8f5609887', ip: '172.17.0.6', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.16.3-microsoft-standard-WSL2', java.version: '1.8.0_382'
Driver info: org.openqa.selenium.edge.EdgeDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--headless, -remote-debugging-port=9222, --remote-allow-origins=*, --start-maximized], binary: /usr/bin/msedgedriver, extensions: []}, pageLoadStrategy: eager}], desiredCapabilities=Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--headless, -remote-debugging-port=9222, --remote-allow-origins=*, --start-maximized], binary: /usr/bin/msedgedriver, extensions: []}, pageLoadStrategy: eager}}]

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.