Instantly share code, notes, and snippets.
Last active
August 29, 2015 14:02
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save davidlinse/f61b313d20ca00540a3d to your computer and use it in GitHub Desktop.
console log of nightwatch when attempt to set cookie before open an url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Set Cookie Test Suite | |
========================== | |
Running: Set Cookie Before Open URL | |
INFO Request: POST /wd/hub/session | |
- data: {"desiredCapabilities":{"browserName":"chrome","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY"}} | |
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":112} | |
INFO Response 200 POST /wd/hub/session{ status: 0, | |
sessionId: '5621a731-efba-4c58-ac87-c049c56905d7', | |
value: | |
{ platform: 'MAC', | |
acceptSslCerts: true, | |
javascriptEnabled: true, | |
browserName: 'chrome', | |
chrome: { userDataDir: '/var/folders/KX/KX5B7AX9GRS9BN-l3gGWxk+++TI/-Tmp-/.org.chromium.Chromium.QCK0Ps' }, | |
rotatable: false, | |
locationContextEnabled: true, | |
'webdriver.remote.sessionid': '5621a731-efba-4c58-ac87-c049c56905d7', | |
version: '35.0.1916.153', | |
takesHeapSnapshot: true, | |
cssSelectorsEnabled: true, | |
databaseEnabled: false, | |
handlesAlerts: true, | |
browserConnectionEnabled: false, | |
nativeEvents: true, | |
webStorageEnabled: true, | |
applicationCacheEnabled: false, | |
takesScreenshot: true }, | |
state: null, | |
class: 'org.openqa.selenium.remote.Response', | |
hCode: 259650411 } | |
INFO Got sessionId from selenium 5621a731-efba-4c58-ac87-c049c56905d7 | |
INFO Request: POST /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/cookie | |
- data: {"cookie":{"name":"test_cookie","value":"test_value","path":"/","domain":"nightwatchjs.org"}} | |
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":93} | |
There was an error while executing the Selenium command | |
<unknown>: Failed to set the 'cookie' property on 'Document': Cookies are disabled inside 'data:' URLs. | |
(Session info: chrome=35.0.1916.153) | |
(Driver info: chromedriver=2.10.267517,platform=Mac OS X 10.6.8 x86) (WARNING: The server did not provide any stacktrace information) | |
Command duration or timeout: 309 milliseconds | |
Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32' | |
System info: host: 'BINARYBOOK.local', ip: '192.168.1.33', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', java.version: '1.6.0_65' | |
Session ID: 5f2932fa4e22d2a2dced577ad324f2dd | |
Driver info: org.openqa.selenium.chrome.ChromeDriver | |
Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/var/folders/KX/KX5B7AX9GRS9BN-l3gGWxk+++TI/-Tmp-/.org.chromium.Chromium.QCK0Ps}, rotatable=false, locationContextEnabled=true, version=35.0.1916.153, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}] | |
ERROR Response 500 POST /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/cookie{ status: 13, | |
sessionId: '5621a731-efba-4c58-ac87-c049c56905d7', | |
value: | |
{ localizedMessage: '<unknown>: Failed to set the \'cookie\' property on \'Document\': Cookies are disabled inside \'data:\' URLs.\n (Session info: chrome=35.0.1916.153)\n (Driver info: chromedriver=2.10.267517,platform=Mac OS X 10.6.8 x86) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 309 milliseconds\nBuild info: version: \'2.41.0\', revision: \'3192d8a\', time: \'2014-03-27 17:17:32\'\nSystem info: host: \'BINARYBOOK.local\', ip: \'192.168.1.33\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.6.8\', java.version: \'1.6.0_65\'\nSession ID: 5f2932fa4e22d2a2dced577ad324f2dd\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/var/folders/KX/KX5B7AX9GRS9BN-l3gGWxk+++TI/-Tmp-/.org.chromium.Chromium.QCK0Ps}, rotatable=false, locationContextEnabled=true, version=35.0.1916.153, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}]', | |
buildInformation: | |
{ releaseLabel: '2.41.0', | |
buildTime: '2014-03-27 17:17:32', | |
class: 'org.openqa.selenium.internal.BuildInfo', | |
buildRevision: '3192d8a', | |
hCode: 1445432963 }, | |
cause: null, | |
systemInformation: 'System info: host: \'BINARYBOOK.local\', ip: \'192.168.1.33\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.6.8\', java.version: \'1.6.0_65\'', | |
supportUrl: null, | |
class: 'org.openqa.selenium.WebDriverException', | |
additionalInformation: '\nSession ID: 5f2932fa4e22d2a2dced577ad324f2dd\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/var/folders/KX/KX5B7AX9GRS9BN-l3gGWxk+++TI/-Tmp-/.org.chromium.Chromium.QCK0Ps}, rotatable=false, locationContextEnabled=true, version=35.0.1916.153, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}]', | |
hCode: 1851652849 }, | |
state: 'unhandled error', | |
class: 'org.openqa.selenium.remote.Response', | |
hCode: 1179468258 } | |
LOG → Completed command cookie (466 ms) | |
INFO Request: POST /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/url | |
- data: {"url":"http://nightwatchjs.org/"} | |
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":34} | |
INFO Response 204 POST /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/url {} | |
LOG → Completed command url (18829 ms) | |
INFO Request: POST /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/element | |
- data: {"using":"css selector","value":"body"} | |
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":39} | |
INFO Response 200 POST /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/element{ status: 0, | |
sessionId: '5621a731-efba-4c58-ac87-c049c56905d7', | |
value: { ELEMENT: '0' }, | |
state: null, | |
class: 'org.openqa.selenium.remote.Response', | |
hCode: 1619519236 } | |
INFO Request: GET /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/element/0/displayed | |
- data: | |
- headers: {"Accept":"application/json"} | |
INFO Response 200 GET /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7/element/0/displayed{ status: 0, | |
sessionId: '5621a731-efba-4c58-ac87-c049c56905d7', | |
value: true, | |
state: null, | |
class: 'org.openqa.selenium.remote.Response', | |
hCode: 1564907096 } | |
✔ Element <body> was visible after 89 milliseconds. | |
LOG → Completed command waitForElementVisible (91 ms) | |
INFO Request: DELETE /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7 | |
- data: | |
- headers: {"Content-Length":0} | |
INFO Response 204 DELETE /wd/hub/session/5621a731-efba-4c58-ac87-c049c56905d7 {} | |
LOG → Completed command session (674 ms) | |
INFO FINISHED | |
OK. 1 total assertions passed. (22909 ms) | |
INFO Selenium process finished. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment