Guest User

Untitled

a guest
Apr 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. const wdio = require('webdriverio');
  2. // Driver options
  3. const opts = {
  4. port: 4723,
  5. desiredCapabilities: {
  6. platformName: "Android",
  7. platformVersion: "8.0",
  8. deviceName: "Nexus 5X API 26",
  9. app: "ApiDemos-debug.apk",
  10. appPackage: "io.appium.android.apis",
  11. appActivity: "",
  12. automationName: "UiAutomator2"
  13. }
  14. };
  15. // load the driver with capabilities
  16. const client = wdio.remote(opts);
  17. //
  18. // invoke some Appium commands
  19. client
  20. .init()
  21. .click("~App")
  22. .click("~Alert Dialogs")
  23. .back()
  24. .back()
  25. .end();
Add Comment
Please, Sign In to add comment