環境:tomcat9.0.x+jdk 1.8.x +opencv 451 + chrome 88.0.4324.104(selenium-server-standalone-3.141.59.jar) 在本機運行正常,放到阿里雲服務器就報錯!!!
selenium操作chrome瀏覽器需要有ChromeDriver驅動來協助。
效果:chrome瀏覽器一打開就自動關閉了.....
以下是本機運行提示
Starting ChromeDriver 88.0.4324.96 (68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784}) on port 28388
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
二月 03, 2021 11:54:22 上午 org.openqa.selenium.remote.ProtocolHandshake createSession
信息: Detected dialect: W3C
阿里雲服務器就報錯
Starting ChromeDriver 88.0.4324.96 (68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784}) on port 28388
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
org.openqa.selenium.remote.ProtocolHandshake createSession(無這一行,且顯示了下面這行)
二月 03, 2021 11:56:22 上午 信息:[Forwarding newSession on session null to remote] org.openqa.selenium.remote.ProtocolHandshake.createSession Detected dialect: W3C
