- 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
/** | |
* @description | |
* Takes a screenshot of page. | |
* Stores screenshot url to be embedded in reporter | |
* Runs image diff | |
* @param {Object} options | |
* @param {Object} options.test - test object | |
* @param {String} [options.filename = 'screenshot'] - keyword for screenshot filename | |
* @param {String} options.filepath - path to folder where screenshots are stored | |
* @param {Bool} options.element - provide element selector if only element should be captured |
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
// courtesy of Thamu Gurung @thamu_gurung_twitter | |
browser.execute(() => { | |
return $(elementSelector).trigger({ type: 'mousedown', which: 39 }); | |
}); | |
/* The Key codes | |
rightArrow - 39 | |
leftArrow - 37 | |
down - 40 | |
enter - 13 |
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
0|undefine | [15:20:09] COMMAND POST "/wd/hub/session/91f1f1ab6cef413dbd27d3874dc1954d/execute" | |
0|undefine | [15:20:09] DATA {"script":"return (function scrollbars(enabled) {\n if (enabled) {\n document.documentElement.style.overflow = '';\n } else {\n document.documentElement.style.overflow = 'hidden';\n }\n}).apply(null, arguments)","args":[false]} | |
0|undefine | [15:20:09] RESULT null | |
0|undefine | [15:20:09] COMMAND POST "/wd/hub/session/91f1f1ab6cef413dbd27d3874dc1954d/execute" | |
0|undefine | [15:20:09] DATA {"script":"return (function triggerResize() {\n var evt = window.document.createEvent('UIEvents');\n evt.initUIEvent('resize', true, false, window, 0);\n window.dispatchEvent(evt);\n}).apply(null, arguments)","args":[]} | |
0|undefine | [15:20:09] COMMAND POST "/wd/hub/session/91f1f1ab6cef413dbd27d3874dc1954d/execute" | |
0|undefine | [15:20:09] DATA {"script":"return (function scrollbars(enabled) {\n if (enabled) {\n document.documentElement.style.overflow = '';\n } else {\n |
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
"use strict" | |
var argv = require('minimist')(process.argv.slice(2)); | |
var utils = require('../lib/modules/utils/utility.es6'); | |
var jsonReporter = require('../reportGenerator/reporter/reporter.js'); | |
require('source-map-support').install(); | |
var Mocha = require('mocha'); | |
var path = require('path'); |
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]], |
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
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
//******************************************************/ | |
//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
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 |
NewerOlder