DispacherServlet默认加载配置文件名

展开阅读全文

selenium启动浏览器加载默认配置失败

03-12

System.setProperty("webdriver.chrome.driver", "D:\\chromedriver\\chromedriver.exe");rn ChromeOptions options = new ChromeOptions();rn options.addArguments("--user-data-dir=C:/Users/user/AppData/Local/Google/Chrome/User Data");rn WebDriver driver = new ChromeDriver(options);rn driver.navigate().to("https://login.taobao.com/member/login.jhtml");rnrnrnStarting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 34401rnOnly local connections are allowed.rnException in thread "main" org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashedrn (Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)rnCommand duration or timeout: 62.27 secondsrnBuild info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'rnSystem info: host: 'DESKTOP-TJ9FOIC', ip: '10.10.70.219', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_71'rnDriver info: org.openqa.selenium.chrome.ChromeDriverrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:526)rn at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)rn at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)rn at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)rn at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)rn at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)rn at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)rn at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:170)rn at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:159)rn at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:148)rn at cn.aaa.main.CCD.main(CCD.java:22)rnrnrn没有加载配置是成功的,加载配置浏览器可以启动,也有加载配置,但后台创建ChromeDriver报错了;rn 论坛

没有更多推荐了,返回首页