Skip to content

Instantly share code, notes, and snippets.

@xrado
Created March 2, 2014 12:52
Show Gist options
  • Save xrado/9306153 to your computer and use it in GitHub Desktop.
Save xrado/9306153 to your computer and use it in GitHub Desktop.
Running: Demo test Google
INFO Request: POST /wd/hub/session
- data: {"desiredCapabilities":{"browserName":"phantomjs","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY"},"sessionId":null}
- headers: {"Content-Type":"application/json","Content-Length":132}
INFO Response 200 POST /wd/hub/session{ status: 0,
sessionId: 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
value:
{ platform: 'MAC',
acceptSslCerts: false,
javascriptEnabled: true,
browserName: 'phantomjs',
rotatable: false,
driverVersion: '1.1.0',
locationContextEnabled: false,
'webdriver.remote.sessionid': 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
version: '1.9.7',
cssSelectorsEnabled: true,
databaseEnabled: false,
handlesAlerts: false,
browserConnectionEnabled: false,
webStorageEnabled: false,
nativeEvents: true,
proxy: { proxyType: 'direct' },
applicationCacheEnabled: false,
driverName: 'ghostdriver',
takesScreenshot: true },
state: null,
class: 'org.openqa.selenium.remote.Response',
hCode: 1953126128 }
INFO Got sessionId from selenium a1bd37ef-253c-4f4e-9fc6-545a212110ee
INFO Request: POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/url
- data: {"url":"http://www.google.com"}
- headers: {"Content-Type":"application/json","Content-Length":31}
INFO Response 204 POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/url {}
LOG - Completed command url
INFO Request: POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element
- data: {"using":"css selector","value":"body"}
- headers: {"Content-Type":"application/json","Content-Length":39}
INFO Response 200 POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element{ status: 0,
sessionId: 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
value: { ELEMENT: '0' },
state: null,
class: 'org.openqa.selenium.remote.Response',
hCode: 2116436308 }
INFO Request: GET /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element/0/displayed
- headers: {"Accept":"application/json"}
INFO Response 200 GET /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element/0/displayed{ status: 0,
sessionId: 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
value: true,
state: null,
class: 'org.openqa.selenium.remote.Response',
hCode: 908950646 }
✔ Element <body> was visible after 79 milliseconds.
LOG - Completed command waitForElementVisible
INFO Request: POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element
- data: {"using":"css selector","value":"input[type=text]"}
- headers: {"Content-Type":"application/json","Content-Length":51}
There was an error while executing the Selenium command
{"errorMessage":"Unable to find element with css selector 'input[type=text]'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"51","Content-Type":"application/json; charset=utf-8","Host":"localhost:2408"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"css selector\",\"value\":\"input[type=text]\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bd26c6c0-a208-11e3-848f-5543a9f33f26/element"}}
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'xrado', ip: '192.168.1.26', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.2', java.version: '1.7.0_45'
Driver info: driver.version: unknown
ERROR Response 500 POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element{ status: 13,
sessionId: 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
value:
{ suppressed: [],
localizedMessage: '{"errorMessage":"Unable to find element with css selector \'input[type=text]\'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"51","Content-Type":"application/json; charset=utf-8","Host":"localhost:2408"},"httpVersion":"1.1","method":"POST","post":"{\\"using\\":\\"css selector\\",\\"value\\":\\"input[type=text]\\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bd26c6c0-a208-11e3-848f-5543a9f33f26/element"}}\nBuild info: version: \'2.40.0\', revision: \'fbe29a9\', time: \'2014-02-19 20:54:28\'\nSystem info: host: \'xrado\', ip: \'192.168.1.26\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_45\'\nDriver info: driver.version: unknown',
buildInformation:
{ releaseLabel: '2.40.0',
buildTime: '2014-02-19 20:54:28',
class: 'org.openqa.selenium.internal.BuildInfo',
buildRevision: 'fbe29a9',
hCode: 552109196 },
cause: null,
systemInformation: 'System info: host: \'xrado\', ip: \'192.168.1.26\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_45\'',
supportUrl: null,
class: 'org.openqa.selenium.remote.ErrorHandler$UnknownServerException',
additionalInformation: '\nDriver info: driver.version: unknown',
hCode: 2051510340,
stackTrace: [] },
state: 'unhandled error',
class: 'org.openqa.selenium.remote.Response',
hCode: 22418485 }
ERROR: Unable to locate element: "input[type=text]" using: css selector
LOG - Completed command setValue
INFO Request: POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element
- data: {"using":"css selector","value":"button[name=btnG]"}
- headers: {"Content-Type":"application/json","Content-Length":52}
There was an error while executing the Selenium command
{"errorMessage":"Unable to find element with css selector 'button[name=btnG]'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"52","Content-Type":"application/json; charset=utf-8","Host":"localhost:2408"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"css selector\",\"value\":\"button[name=btnG]\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bd26c6c0-a208-11e3-848f-5543a9f33f26/element"}}
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'xrado', ip: '192.168.1.26', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.2', java.version: '1.7.0_45'
Driver info: driver.version: unknown
ERROR Response 500 POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element{ status: 13,
sessionId: 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
value:
{ suppressed: [],
localizedMessage: '{"errorMessage":"Unable to find element with css selector \'button[name=btnG]\'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"52","Content-Type":"application/json; charset=utf-8","Host":"localhost:2408"},"httpVersion":"1.1","method":"POST","post":"{\\"using\\":\\"css selector\\",\\"value\\":\\"button[name=btnG]\\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bd26c6c0-a208-11e3-848f-5543a9f33f26/element"}}\nBuild info: version: \'2.40.0\', revision: \'fbe29a9\', time: \'2014-02-19 20:54:28\'\nSystem info: host: \'xrado\', ip: \'192.168.1.26\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_45\'\nDriver info: driver.version: unknown',
buildInformation:
{ releaseLabel: '2.40.0',
buildTime: '2014-02-19 20:54:28',
class: 'org.openqa.selenium.internal.BuildInfo',
buildRevision: 'fbe29a9',
hCode: 1478217370 },
cause: null,
systemInformation: 'System info: host: \'xrado\', ip: \'192.168.1.26\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_45\'',
supportUrl: null,
class: 'org.openqa.selenium.remote.ErrorHandler$UnknownServerException',
additionalInformation: '\nDriver info: driver.version: unknown',
hCode: 1049233441,
stackTrace: [] },
state: 'unhandled error',
class: 'org.openqa.selenium.remote.Response',
hCode: 161025447 }
INFO Request: POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element
- data: {"using":"css selector","value":"button[name=btnG]"}
- headers: {"Content-Type":"application/json","Content-Length":52}
There was an error while executing the Selenium command
{"errorMessage":"Unable to find element with css selector 'button[name=btnG]'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"52","Content-Type":"application/json; charset=utf-8","Host":"localhost:2408"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"css selector\",\"value\":\"button[name=btnG]\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bd26c6c0-a208-11e3-848f-5543a9f33f26/element"}}
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'xrado', ip: '192.168.1.26', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.2', java.version: '1.7.0_45'
Driver info: driver.version: unknown
ERROR Response 500 POST /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee/element{ status: 13,
sessionId: 'a1bd37ef-253c-4f4e-9fc6-545a212110ee',
value:
{ suppressed: [],
localizedMessage: '{"errorMessage":"Unable to find element with css selector \'button[name=btnG]\'","request":{"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"52","Content-Type":"application/json; charset=utf-8","Host":"localhost:2408"},"httpVersion":"1.1","method":"POST","post":"{\\"using\\":\\"css selector\\",\\"value\\":\\"button[name=btnG]\\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bd26c6c0-a208-11e3-848f-5543a9f33f26/element"}}\nBuild info: version: \'2.40.0\', revision: \'fbe29a9\', time: \'2014-02-19 20:54:28\'\nSystem info: host: \'xrado\', ip: \'192.168.1.26\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_45\'\nDriver info: driver.version: unknown',
buildInformation:
{ releaseLabel: '2.40.0',
buildTime: '2014-02-19 20:54:28',
class: 'org.openqa.selenium.internal.BuildInfo',
buildRevision: 'fbe29a9',
hCode: 1938401129 },
cause: null,
systemInformation: 'System info: host: \'xrado\', ip: \'192.168.1.26\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.9.2\', java.version: \'1.7.0_45\'',
supportUrl: null,
class: 'org.openqa.selenium.remote.ErrorHandler$UnknownServerException',
additionalInformation: '\nDriver info: driver.version: unknown',
hCode: 834601898,
stackTrace: [] },
state: 'unhandled error',
class: 'org.openqa.selenium.remote.Response',
hCode: 1334148194 }
✖ Element <button[name=btnG]> was not present in 1000 milliseconds.
INFO Request: DELETE /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee
- headers: {}
LOG - Completed command waitForElementVisible
INFO Response 204 DELETE /wd/hub/session/a1bd37ef-253c-4f4e-9fc6-545a212110ee {}
Unable to locate element: "input[type=text]" using: css selector
FAILED: 1 assertions failed, 1 errors, 1 passed and 4 skipped
LOG - Completed command session
INFO Selenium process finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment