进程意外关闭状态:0

时间:2018-04-24 17:06:30

标签: selenium selenium-webdriver

我无法启动Google ..我删除了整个工作区(我认为我犯了一个大错误),然后又尝试再次练习硒,但现在我甚至无法在其中启动谷歌。我正在使用“硒的服务器独立-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>

1 个答案:

答案 0 :(得分:2)

IF 您正在使用沙箱,这将解决您的问题:

在Firefox个人资料中将“security.sandbox.content.level”设置为“5”

其他: 更新您的浏览器。