标题: WARNING: The server did not provide any stacktrace information [打印本页] 作者: chjh20090908 时间: 2016-12-12 21:58 标题: WARNING: The server did not provide any stacktrace information Started InternetExplorerDriver server (32-bit)
2.42.0.0
Listening on port 46747
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with name == wd (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 356 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'DESKTOP-4TVA1UM', ip: '192.168.0.115', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:46747/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=true, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]
Session ID: 309e4668-62b7-45d0-99b0-a0d31e14517c
*** Element info: {Using=name, value=wd}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByName(RemoteWebDriver.java:451)
at org.openqa.selenium.By$ByName.findElement(By.java:303)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:345)
at seleniumOne.MyTest.main(MyTest.java:28)
运行代码报错,求解决作者: chjh20090908 时间: 2016-12-14 20:10
哪位大神支持下呢 作者: Tino 时间: 2016-12-15 09:43
Unable to find element with name == wd 可能是因为元素没找到 你试试加个等待时间看看元素会不会出来作者: 风逝后花开 时间: 2018-1-18 16:02
我也遇到同样的问题了,请问你的解决了吗?页面其实已经加载完成了,但是就是找不到,我是用的selenium server,在本地机器上正常,在远程的机器上报错