Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持MAC电脑吗 #5

Open
guochenchn opened this issue Aug 8, 2023 · 3 comments
Open

不支持MAC电脑吗 #5

guochenchn opened this issue Aug 8, 2023 · 3 comments

Comments

@guochenchn
Copy link

无法打开MAC中的chrome

@lovelyjuice
Copy link
Owner

没有mac,不太清楚

@guochenchn
Copy link
Author

我用了windows 执行完那行代码,浏览器打开了 地址栏是data,没有跳转到指定页面,手动打开到指定页面,输入指令没有爬取,有遇到这样的问题吗

@guochenchn
Copy link
Author

Exception in thread "main" org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection to http://localhost:54747/devtools/browser/44ca6f6d-0782-4c2c-a8f5-e4f92985e070
Build info: version: '4.4.0', revision: 'e5c75ed026a'
System info: host: 'localhost', ip: 'fe80:0:0:0:c56:5cc6:9515:8dc0%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.3.1', java.version: '11.0.18'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.http.netty.NettyWebSocket.(NettyWebSocket.java:102)
at org.openqa.selenium.remote.http.netty.NettyWebSocket.lambda$create$3(NettyWebSocket.java:128)
at org.openqa.selenium.remote.http.netty.NettyClient.openSocket(NettyClient.java:106)
at org.openqa.selenium.devtools.Connection.(Connection.java:77)
at org.openqa.selenium.chromium.ChromiumDriver.lambda$new$2(ChromiumDriver.java:116)
at java.base/java.util.Optional.map(Optional.java:265)
at org.openqa.selenium.chromium.ChromiumDriver.(ChromiumDriver.java:114)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:81)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:49)
at io.github.lovelyjuice.Main.main(Main.java:21)

报了这个错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants