TA的每日心情 | 慵懒 2016-12-7 15:45 |
---|
签到天数: 2 天 连续签到: 2 天 [LV.1]测试小兵
|
- Starting ChromeDriver (v2.9.248315) on port 30070
- 网页标题:闪闪管家-登陆
- Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: element not visible
- (Session info: chrome=52.0.2743.116)
- (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
- Command duration or timeout: 33 milliseconds
- Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
- System info: host: 'SKY-20150530DNQ', ip: '192.168.1.145', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_75'
- Session ID: cf62441652984d6a4a6144ec3fe65e84
- Driver info: org.openqa.selenium.chrome.ChromeDriver
- Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=C:\Users\ADMINI~1\AppData\Local\Temp\scoped_dir8956_2549}, rotatable=false, locationContextEnabled=true, version=52.0.2743.116, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false, takesScreenshot=true}]
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- at java.lang.reflect.Constructor.newInstance(Unknown Source)
- at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
- at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
- at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
- at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
- at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
- at com.selenium.test.TestSaasLogin.main(TestSaasLogin.java:31)
复制代码
因为在firefox上正常运行结束了,代码没更改过,将驱动化成了chrome,
System.setProperty("webdriver.chrome.driver", "D:\\chromDriver\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
不知道在chrome上报错的原因 |
|