gpt4 book ai didi

selenium - 进程意外关闭,状态为 : 0

转载 作者:行者123 更新时间:2023-12-05 02:16:22 24 4
gpt4 key购买 nike

我无法启动谷歌。我删除了整个工作区(我认为我这样做犯了一个大错误)然后尝试再次练习 Selenium ,但现在我什至无法在其中启动谷歌。我正在使用“selenium-server-standalone-3.11.0"Firefox 驱动程序正在打开,但我无法启动谷歌。任何人都可以帮助我。

package Basic;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class SignIn {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver", "F:\\Selenium\\geckodriver-v0.19.1-win64\\geckodriver.exe");
WebDriver driver= new FirefoxDriver();
driver.get("https://www.google.com");
}

}


Error:-
1524588951733 Marionette INFO Listening on port 2828
[GPU 2300] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[GPU 2300] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 4276] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 4276] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Exception in thread "main" org.openqa.selenium.WebDriverException: Process unexpectedly closed with status: 0
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: 'RAHUL', ip: '192.168.1.109', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_161'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x47e934 - <no info>
1: 0x47f0a3 - <no info>

最佳答案

如果您正在使用沙箱,那么这将解决您的问题:

在 Firefox 配置文件中将“security.sandbox.content.level”设置为“5”

其他:更新您的浏览器。

关于selenium - 进程意外关闭,状态为 : 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50007321/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com