Skip to content

Instantly share code, notes, and snippets.

@KazuCocoa
Last active June 13, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KazuCocoa/c9237dde7b3d386848af9c1af107c284 to your computer and use it in GitHub Desktop.
Save KazuCocoa/c9237dde7b3d386848af9c1af107c284 to your computer and use it in GitHub Desktop.
  • Run appium on your code with link
git clone git@github.com:appium/appium.git
cd appium
npm install
cd ..
git clone git@github.com:appium/appium-uiautomator2-driver.git
cd appium-uiautomator2-driver
npm install
cd ../appium
npm link /Users/kazu/GitHub/appium-uiautomator2-driver # your code
  • next:
    • change /Users/kazu/GitHub/appium-uiautomator2-driver/lib/driver.js
async createSession (...args) { # Line 147
    # add below
    logger.info('======hello from uia2 AppiumConf2019 ======');
# in appium-uiautomator2-driver
npm run build

# in Appium
node .
  • Run client side code
    • maybe, git clone clinet dource and run its test code is the easiest
@KazuCocoa
Copy link
Author

xcuitest driver case

git clone git@github.com:appium/appium-xcuitest-driver.git
cd appium-xcuitest-driver
npm install
# change the code

# in appium repository
cd appium
npm link /Users/kazu/GitHub/appium-xcuitest-driver # your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment