This file contains 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 the page object model, what I have is something like this: | |
class LoginScreen extends MainScreen { | |
protected static SCREEN_NAME = 'LoginScreen'; | |
public function __construct($driver) | |
{ | |
parent::__construct($driver); | |
// Various login element selectors. |
This file contains 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
info: Welcome to Appium v1.2.2 (REV cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4) | |
info: Appium REST http interface listener started on 0.0.0.0:4723 | |
info: [debug] Non-default server args: {"sessionOverride":true,"selendroidPort":8081} | |
info: LogLevel: debug | |
info: --> POST /wd/hub/session {"desiredCapabilities":{"automationName":"Selendroid","app":"/Users/ykung/Documents/mobileapps/foo_android_app/build/outputs/apk/foo_android_app-foo-debug.apk","platformVersion":"4.0","deviceName":"Android Device","platformName":"Android","appActivity":"com.foo.activity.LaunchActivity","appPackage":"com.fooapp"}} | |
info: [debug] Using local app from desired caps: /Users/ykung/Documents/mobileapps/foo_android_app/build/outputs/apk/foo_android_app-foo-debug.apk | |
info: [debug] Creating new appium session a0963f5c-fc5d-400e-a6d2-2cdaa23f8086 | |
info: [debug] Starting selendroid server | |
info: [debug] Checking whether selendroid is built yet | |
info: [debug] Selendroid server exists! |
This file contains 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
$ appium --session-override --selendroid-port 8082 | |
info: Welcome to Appium v1.2.4 (REV 71584425ecf777349e3215f0f18e71e7782acfb6) | |
info: Appium REST http interface listener started on 0.0.0.0:4723 | |
info: [debug] Non-default server args: {"sessionOverride":true,"selendroidPort":8082} | |
info: Console LogLevel: debug | |
info: --> POST /wd/hub/session {"desiredCapabilities":{"automationName":"Selendroid","app":"/Users/lkung/Documents/mobileapps/foo_android_app/build/outputs/apk/foo_android_app-foo-debug.apk","platformVersion":"4.0","deviceName":"Android Device","platformName":"Android","appActivity":"com.foo.activity.LaunchActivity","appPackage":"com.fooapp"}} | |
info: [debug] Using local app from desired caps: /Users/lkung/Documents/mobileapps/foo_android_app/build/outputs/apk/foo_android_app-foo-debug.apk | |
info: [debug] Creating new appium session 8631cab9-05da-4562-b311-de26216e6a27 | |
info: [debug] Starting selendroid server | |
info: [debug] Checking whether selendroid is built yet |
This file contains 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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import json | |
import os | |
import re | |
import sys | |
from apiclient.discovery import build | |
from apiclient.errors import HttpError as YouTubeHTTPError |