Skip to content

Instantly share code, notes, and snippets.

@davidlinse
Created July 3, 2014 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidlinse/49bb387a08702ec0ec0e to your computer and use it in GitHub Desktop.
Save davidlinse/49bb387a08702ec0ec0e to your computer and use it in GitHub Desktop.
Selenium log output when running with xpath variables
13:30:14.279 INFO - Executing: [new session: Capabilities [{name=xpath, platform=ANY, version=, browserName=firefox, javascriptEnabled=true}]] at URL: /session)
13:30:14.280 INFO - Creating a new session for Capabilities [{name=xpath, platform=ANY, version=, browserName=firefox, javascriptEnabled=true}]
13:30:15.778 INFO - Done: /session
13:30:15.786 INFO - Executing: [implicitly wait: 30000] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/timeouts/implicit_wait)
13:30:15.791 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/timeouts/implicit_wait
13:30:15.797 INFO - Executing: [get: http://sebuilder.github.io/se-builder/] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/url)
13:30:18.041 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/url
13:30:18.046 INFO - Executing: [find element: By.xpath: //h1[@class='selenium-builder-logo']] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/element)
13:30:18.085 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/element
13:30:18.091 INFO - Executing: [find element: By.xpath: ${headline-xpath}] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4/element)
13:30:18.487 WARN - Exception thrown
org.openqa.selenium.InvalidSelectorException: The given selector ${headline-xpath} is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: Unable to locate an element with the xpath expression ${headline-xpath} because of the following error:
[Exception... "The expression is not a legal expression." code: "51" nsresult: "0x805b0033 (NS_ERROR_DOM_INVALID_EXPRESSION_ERR)" location: "file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js Line: 5934"]
Command duration or timeout: 7 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32'
System info: host: 'mini-02.intern.dasburo.com', ip: '192.111.127.166', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.5', java.version: '1.8.0-ea'
Capabilities [{handlesAlerts=true, takesScreenshot=true, locationContextEnabled=true, applicationCacheEnabled=true, acceptSslCerts=true, platform=MAC, databaseEnabled=true, version=10.0, nativeEvents=false, browserName=firefox, javascriptEnabled=true, webStorageEnabled=true, rotatable=false, cssSelectorsEnabled=true}]
Session ID: c32a88c4-e2c3-2645-91bc-58f0ff85508d
Driver info: org.openqa.selenium.firefox.FirefoxDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:414)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:445)
at org.openqa.selenium.By$ByXPath.findElement(By.java:357)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:340)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:491)
at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:101)
at com.sun.proxy.$Proxy20.findElement(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver.findElement(EventFiringWebDriver.java:184)
at org.openqa.selenium.remote.server.handler.FindElement.call(FindElement.java:47)
at org.openqa.selenium.remote.server.handler.FindElement.call(FindElement.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:170)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: The given selector ${headline-xpath} is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: Unable to locate an element with the xpath expression ${headline-xpath} because of the following error:
[Exception... "The expression is not a legal expression." code: "51" nsresult: "0x805b0033 (NS_ERROR_DOM_INVALID_EXPRESSION_ERR)" location: "file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js Line: 5934"]
Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32'
System info: host: 'mini-02.intern.dasburo.com', ip: '192.111.127.166', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.5', java.version: '1.8.0-ea'
Driver info: driver.version: unknown
at <anonymous class>.<anonymous method>(file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:8879)
at <anonymous class>.<anonymous method>(file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:8910)
at <anonymous class>.<anonymous method>(file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:8914)
at <anonymous class>.<anonymous method>(file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:10884)
at <anonymous class>.<anonymous method>(file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:10889)
at <anonymous class>.<anonymous method>(file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:10831)
13:30:18.489 WARN - Exception: The given selector ${headline-xpath} is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: Unable to locate an element with the xpath expression ${headline-xpath} because of the following error:
[Exception... "The expression is not a legal expression." code: "51" nsresult: "0x805b0033 (NS_ERROR_DOM_INVALID_EXPRESSION_ERR)" location: "file:///var/folders/zz/zyxvpxvq6csfxvn_n000021r0000hf/T/anonymous7712508073900095858webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js Line: 5934"]
Command duration or timeout: 7 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32'
System info: host: 'mini-02.intern.dasburo.com', ip: '192.111.127.166', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.5', java.version: '1.8.0-ea'
Capabilities [{handlesAlerts=true, takesScreenshot=true, locationContextEnabled=true, applicationCacheEnabled=true, acceptSslCerts=true, platform=MAC, databaseEnabled=true, version=10.0, nativeEvents=false, browserName=firefox, javascriptEnabled=true, webStorageEnabled=true, rotatable=false, cssSelectorsEnabled=true}]
Session ID: c32a88c4-e2c3-2645-91bc-58f0ff85508d
Driver info: org.openqa.selenium.firefox.FirefoxDriver
13:30:18.737 INFO - Executing: [delete session: 1ee7920d-b1cf-4a12-97dd-e8c27f326cb4] at URL: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4)
13:30:18.808 INFO - Done: /session/1ee7920d-b1cf-4a12-97dd-e8c27f326cb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment