This file contains hidden or 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
| 13:52:11.826 INFO - Executing: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@34e7ed2e, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, requestOrigins={name=webdriverio, version=4.2.1, url=http://webdriver.io}}]]) | |
| 13:52:11.828 INFO - Creating a new session for Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@34e7ed2e, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, requestOrigins={name=webdriverio, version=4.2.1, url=http://webdriver.io}}] | |
| Starting ChromeDriver 2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4) on port 13168 | |
| Only local connections are allowed. | |
| 13:52:12.538 INFO - Done: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@34e7ed2e, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, requestOrigins={name=webdrive |
This file contains hidden or 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
| 13:47:51.326 INFO - Executing: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@79c21fba, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, requestOrigins={name=webdriverio, version=4.2.1, url=http://webdriver.io}}]]) | |
| 13:47:51.327 INFO - Creating a new session for Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@79c21fba, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, requestOrigins={name=webdriverio, version=4.2.1, url=http://webdriver.io}}] | |
| Starting ChromeDriver 2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4) on port 33758 | |
| Only local connections are allowed. | |
| 13:47:52.107 INFO - Done: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@79c21fba, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, requestOrigins={name=webdrive |
This file contains hidden or 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
| exports.smartScreenshot = function(driver, filepath){ | |
| return new Promise(function(resolve, reject){ | |
| function scrollAndShoot(position, iteration, repetitions, viewHeight){ | |
| driver.scroll(0, position).then(function(){ | |
| var p = filepath + '_' + iteration + '.png'; | |
| driver.saveScreenshot(p).then(function(){ | |
| iteration++; | |
| if(iteration > repetitions){ | |
| //todo | |
| //https://wiki.saucelabs.com/display/DOCS/Annotating+Tests+with+the+Sauce+Labs+REST+API |
This file contains hidden or 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
| for (var property in object) { | |
| if (object.hasOwnProperty(property)) { | |
| // do stuff | |
| } | |
| } |
NewerOlder