Skip to content

Instantly share code, notes, and snippets.

@yannispanousis
Last active November 18, 2015 11:30
Show Gist options
  • Save yannispanousis/cad193ba6f4d3a188f38 to your computer and use it in GitHub Desktop.
Save yannispanousis/cad193ba6f4d3a188f38 to your computer and use it in GitHub Desktop.
The 'browser' object made available globally *per browser tested* within https://github.com/webdriverio/webdriverio tests
{
"defer": {
"promise": {
"source": {}
}
},
"promise": {
"source": {}
},
"lastPromise": {},
# COMMENT: "desiredCapabilities" will differ for each browser you've configured WebdriverIO to run on
"desiredCapabilities": {
"browserName": "chrome",
"version": "",
"javascriptEnabled": true,
"locationContextEnabled": true,
"handlesAlerts": true,
"rotatable": true,
"platform": "ANY",
"loggingPrefs": {
"browser": "ALL",
"driver": "ALL"
}
},
"requestHandler": {
"sessionID": "ee429254-5910-42a2-8927-336281af2bdd",
"startPath": "/wd/hub",
"eventHandler": {
"domain": null,
"_events": {
"command": [
null,
null
],
"result": [
null,
null
],
"error": [
null,
null
]
},
"_eventsCount": 5
},
"logger": {
"logLevel": "silent"
},
"defaultOptions": {
"port": 4444,
"protocol": "http",
"waitforTimeout": 10000,
"waitforInterval": 250,
"coloredLogs": true,
"logLevel": "silent",
"baseUrl": "http://localhost:3000",
"specs": [
"./e2e-test/root.js",
"./e2e-test/team/**auth-test.js"
],
"exclude": [],
"framework": "mocha",
"reporter": "spec",
"mochaOpts": {
"timeout": 10000,
"ui": "bdd",
"compilers": [
"js:babel-core/register"
],
"files": [
"/home/yannis/git/lystable-frontend/./e2e-test/root.js",
"/home/yannis/git/lystable-frontend/./e2e-test/team/auth-test.js"
]
},
"updateJob": true,
"path": "/wd/hub",
"screenshotPath": "./errorShots/",
"desiredCapabilities": {
"browserName": "chrome"
},
"hostname": "localhost"
}
},
"logger": {
"logLevel": "silent"
},
"options": {
"port": 4444,
"protocol": "http",
"waitforTimeout": 10000,
"waitforInterval": 250,
"coloredLogs": true,
"logLevel": "silent",
"baseUrl": "http://localhost:3000",
"specs": [
"./e2e-test/root.js",
"./e2e-test/team/**auth-test.js"
],
"exclude": [],
"framework": "mocha",
"reporter": "spec",
"mochaOpts": {
"timeout": 10000,
"ui": "bdd",
"compilers": [
"js:babel-core/register"
],
"files": [
"/home/yannis/git/lystable-frontend/./e2e-test/root.js",
"/home/yannis/git/lystable-frontend/./e2e-test/team/auth-test.js"
]
},
"updateJob": true,
"path": "/wd/hub",
"screenshotPath": "./errorShots/",
"desiredCapabilities": {
"browserName": "chrome"
},
"hostname": "localhost"
},
"isMobile": false,
"commandList": [
{
"name": "init",
"args": []
},
{
"name": "url",
"args": [
"/login"
]
},
{
"name": "setValue",
"args": [
".input__root[name=\"username\"]",
"admin@lystable.com"
]
},
{
"name": "elements",
"args": [
".input__root[name=\"username\"]"
]
},
{
"name": "elementIdClear",
"args": [
"0"
]
},
{
"name": "elementIdValue",
"args": [
"0",
"admin@lystable.com"
]
},
{
"name": "setValue",
"args": [
".input__root[name=\"password\"]",
"password"
]
},
{
"name": "elements",
"args": [
".input__root[name=\"password\"]"
]
},
{
"name": "elementIdClear",
"args": [
"1"
]
},
{
"name": "elementIdValue",
"args": [
"1",
"password"
]
},
{
"name": "submitForm",
"args": [
".login-page__root form"
]
},
{
"name": "element",
"args": [
".login-page__root form"
]
},
{
"name": "submit",
"args": [
"2"
]
},
{
"name": "waitForVisible",
"args": [
".login-form__root .button__successMessage"
]
},
{
"name": "waitUntil",
"args": [
null,
10000
]
},
{
"name": "isVisible",
"args": [
".login-form__root .button__successMessage"
]
},
{
"name": "elements",
"args": [
".login-form__root .button__successMessage"
]
},
{
"name": "elementIdDisplayed",
"args": [
"3"
]
},
{
"name": "pause",
"args": [
250
]
},
{
"name": "isVisible",
"args": [
".login-form__root .button__successMessage"
]
},
{
"name": "elements",
"args": [
".login-form__root .button__successMessage"
]
},
{
"name": "elementIdDisplayed",
"args": [
"3"
]
},
{
"name": "waitUntil",
"args": [
null
]
},
{
"name": "url",
"args": []
},
{
"name": "pause",
"args": [
250
]
},
{
"name": "url",
"args": []
},
{
"name": "pause",
"args": [
250
]
},
{
"name": "url",
"args": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment