WebDriverException instead of NoSuchElementException when element not found
http://code.google.com/p/selenium/issues/detail?id=3470
A stacktrace showing the issue on Windows XP SP3, Selenium 2.21.0, Internet
Explorer 8, searching for an element by XPath (so no CSS selector as OP
stated):
Error: org.openqa.selenium.WebDriverException (Unable to find element with
xpath == //*[contains(text(),'Align') or contains(@value,'Align')]
(WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 688 milliseconds
Build info: version: '2.2.1', revision: '16551', time: '2012-04-11 21:42:35'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.version: '1.6.0_22'
Driver info: driver.version: RemoteWebDriver)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:175)
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:128)
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:459)
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:227)
org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:312)
org.openqa.selenium.By$ByXPath.findElement(By.java:344)
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:219)
--
You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
To post to this group, send email to selenium-developer-activity@googlegroups.com.
To unsubscribe from this group, send email to selenium-developer-activity+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developer-activity?hl=en.