Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const wdio = require('webdriverio');
- // Driver options
- const opts = {
- port: 4723,
- desiredCapabilities: {
- platformName: "Android",
- platformVersion: "8.0",
- deviceName: "Nexus 5X API 26",
- app: "ApiDemos-debug.apk",
- appPackage: "io.appium.android.apis",
- appActivity: "",
- automationName: "UiAutomator2"
- }
- };
- // load the driver with capabilities
- const client = wdio.remote(opts);
- //
- // invoke some Appium commands
- client
- .init()
- .click("~App")
- .click("~Alert Dialogs")
- .back()
- .back()
- .end();
Add Comment
Please, Sign In to add comment