- 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
/** | |
* With this helper you can start emulators from the command line with some easy questions. | |
* It will automatically list all AVD's that you've configuered on your machine. | |
* | |
* NOTE 1: MAKE SURE YOU'VE ADDED inquirer WITH `npm install inquirer --D` TO YOUR DEV DEPENDENCIES | |
* NOTE 2: MAKE SURE YOU'VE SETUP UP YOUR ENVIRONMENT CORRECTLY WITH ALL THE ENVIRONMENT VARIABLES NEEDED | |
* FOR MAKING ANDROID WORK ON YOUR MACHINE | |
* NOTE 3: MAKE USE YOU HAVE SET YOUR `HOME`, THAT SHOULD BE SOMETHING LIKE `/Users/wswebcreation` | |
* NOTE 4: MAKE SURE YOU'VE SET THE `ANDROID_EMULATOR_PATH` TO THE CORRECT PATH ON YOUR MACHINE | |
* WHERE ALL THE EMULATORS ARE LISTED, WITHOUT THE `HOME` PATH IN IT |
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
/** | |
* Here you'll find some swipe methods for a native iOS or Android app | |
* which can be used when you are using webdriver.io | |
* | |
* I work a lot based on percentages, so it is working on all screens and all devices | |
* and I hope you understand how to use it based on the docs. | |
* | |
* Feel free to use it for all kinds of purposes, a star is much appreciated ;-) | |
* | |
* Grtz, |
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
const ENDPOINTS = { | |
ACTIONS: '/session/:sessionId/actions', | |
} | |
const ActionType = { | |
KEY_DOWN: 'keyDown', | |
KEY_UP: 'keyUp', | |
PAUSE: 'pause', | |
POINTER_DOWN: 'pointerDown', | |
POINTER_UP: 'pointerUp', | |
POINTER_MOVE: 'pointerMove', |
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
import React, { Component } from 'react'; | |
import { graphql } from 'react-apollo'; | |
import { gql } from 'graphql-tools'; | |
const QUERY = gql` | |
query MatchesByDate($date: Int) { | |
matches(date: $date) { | |
id | |
minute | |
period |
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
var libxmljs = require("libxmljs"); | |
var xml = [ | |
'<?xml version="1.0" encoding="utf-8"?>', | |
'<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">', | |
' <soap:Body>', | |
' <Response xmlns="http://tempuri.org/">', | |
' <Result>', | |
' <client xmlns="">', | |
' <msg>SEARCH OK.</msg>', | |
' <code>0</code>', |
NewerOlder