- Set up for Appium:
- Reference:
- install xcode:
-
make sure you are NOT installing the latest version. Install v7 here: https://developer.apple.com/download/more/
-
make sure the correct simulators are downloaded at xcode -> preferences -> components
NOTE: If you don't have the correct simulators downloaded then you will get the error: "Could not find a device to launch..."
-
- install carthage which is an appium dependency: https://github.com/Carthage/Carthage
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 | |
} | |
} |
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
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
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
FROM node:argon | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json /usr/src/app/ | |
RUN npm install |
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
//******************************************************/ | |
//Include all files going one directory deep | |
//* @param {String} d - directory name of directory where search is occurring | |
//* @param {Array || String} exclude - array of file names {STRING} to skip | |
//******************************************************/ | |
function fileSearch(d, exclude){ | |
var exclude = exclude || []; |
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
process.send({ | |
type : 'process:msg', | |
data : {id:process.pid} | |
}); | |
process.disconnect(); | |
process.exit(); |
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
Bunch of stuff broken? Don't fear..the Actions API is on it's way and it will probably be a good thing! Chin up! | |
OVERVIEW: | |
The purpose of this document is to explain the new actions API and what it has to do with certain commands | |
such as moveto and keys being depricated in webdriverio (due to them being deprecated in certain browser drivers). | |
MAIN ISSUE: | |
1. The issue is that these new drivers suppress these commands on purpose because they are deprecated, | |
but the drivers have not yet implemented the new WC3 standard called "actions API". | |
"The user-facing API for emulating complex user gestures. Use this class rather than using the Keyboard or Mouse directly." |
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
1) Include the following in your webdriverio config | |
NOTE: max_duration is specific to crossbrowsertesting.com. | |
cbt will time out any test after 10 minutes unless you pass a "max_duration" | |
value in your capabilities. | |
desiredCapabilities: {max_duration:[[amount in seconds]]} | |
const cbtConfig = { | |
host: "hub.crossbrowsertesting.com", | |
port: 80, | |
user: [[INSERT YOUR USER NAME HERE]], |
OlderNewer