Skip to content

Instantly share code, notes, and snippets.

@JaniJegoroff
Created March 7, 2016 15:22
Show Gist options
  • Save JaniJegoroff/a0fbdb0ab66d82f0e2bb to your computer and use it in GitHub Desktop.
Save JaniJegoroff/a0fbdb0ab66d82f0e2bb to your computer and use it in GitHub Desktop.
Janis-MacBook-Air:bdd janijegoroff$ node node_modules/appium/
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"}}
info: Client User-Agent string: appium/ruby_lib/8.0.2
info: [debug] Using local app from desired caps: /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk
info: [debug] Creating new appium session 6b4e912d-9615-4588-8dd4-284429ee81a1
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_45
info: [debug] Checking whether adb is present
info: [debug] Using adb from /Users/janijegoroff/android-development/sdk/platform-tools/adb
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb devices
info: [debug] 1 device(s) connected
info: Found device 0353ac1609352fcc
info: [debug] Setting device id to 0353ac1609352fcc
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc wait-for-device
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Getting device API level
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 23
info: Device API level is: 23
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "getprop persist.sys.language"
info: [debug] Current device persist.sys.language:
info: [debug] java -jar "/Users/janijegoroff/projects/mobile-ios-app/mobile-common/bdd/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk" "/tmp/io.appium.android.apis"
info: [debug] Reading strings from converted strings.json
info: [debug] Setting language to default
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc push "/tmp/io.appium.android.apis/strings.json" /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/janijegoroff/android-development/sdk/build-tools/android-4.4W/aapt
info: [debug] Retrieving process from manifest.
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/build-tools/android-4.4W/aapt dump xmltree /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk AndroidManifest.xml
info: [debug] Set app process to: io.appium.android.apis
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk.
info: [debug] executing cmd: java -jar /Users/janijegoroff/projects/mobile-ios-app/mobile-common/bdd/node_modules/appium/node_modules/appium-adb/jars/verify.jar /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk
info: [debug] App already signed.
info: [debug] Zip-aligning /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/janijegoroff/android-development/sdk/build-tools/android-4.4W/zipalign
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/build-tools/android-4.4W/zipalign -f 4 /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk /var/folders/66/62hrz8650r72_srksbdfwpjm0000gn/T/11627-42501-5dg1tl/appium.tmp
info: [debug] MD5 for app is 43e47d1be6a34c2ada8f5249f5eedd58
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "ls /data/local/tmp/43e47d1be6a34c2ada8f5249f5eedd58.apk"
info: [debug] Getting install status for io.appium.android.apis
info: [debug] Getting device API level
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 23
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "pm list packages -3 io.appium.android.apis"
info: [debug] App is installed
info: App is already installed, resetting app
info: [debug] Running fast reset (stop and clear)
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "am force-stop io.appium.android.apis"
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "pm clear io.appium.android.apis"
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc push "/Users/janijegoroff/projects/mobile-ios-app/mobile-common/bdd/node_modules/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc install "/Users/janijegoroff/projects/mobile-ios-app/mobile-common/bdd/node_modules/appium/build/settings_apk/settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc install "/Users/janijegoroff/projects/mobile-ios-app/mobile-common/bdd/node_modules/appium/build/unlock_apk/unlock_apk-debug.apk"
info: Starting App
info: [debug] Attempting to kill all 'uiautomator' processes
info: [debug] Getting all processes with 'uiautomator'
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "ps 'uiautomator'"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg io.appium.android.apis -e disableAndroidWatchers false
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json...
info: [debug] Waking up device if it's not alive
info: [debug] Pushing command to appium work queue: ["wake",{}]
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "dumpsys window"
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"\/data\/local\/tmp"}
info: [debug] dataDir set to: /data/local/tmp
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":false}
info: [debug] Getting device API level
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 23
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.android.apis/.ApiDemos"
info: [debug] Waiting for pkg "io.appium.android.apis" and activity ".ApiDemos" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "dumpsys window windows"
info: [debug] executing cmd: /Users/janijegoroff/android-development/sdk/platform-tools/adb -s 0353ac1609352fcc shell "getprop ro.build.version.release"
info: [debug] Device is at release version 6.0.1
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to 999999 secs
info: [debug] Appium session started with sessionId 6b4e912d-9615-4588-8dd4-284429ee81a1
info: <-- POST /wd/hub/session 303 9059.082 ms - 74
info: --> GET /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1 {}
info: [debug] Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"6.0.1","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"},"newCommandTimeout":999999,"platformName":"Android","deviceName":"0353ac1609352fcc","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"},"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: <-- GET /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1 200 4.882 ms - 752 {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"6.0.1","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"},"newCommandTimeout":999999,"platformName":"Android","deviceName":"0353ac1609352fcc","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","appPackage":"io.appium.android.apis","appActivity":".ApiDemos"},"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: --> POST /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1/timeouts/implicit_wait {"ms":0}
info: [debug] Set Android implicit wait to 0ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: <-- POST /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1/timeouts/implicit_wait 200 2.375 ms - 76 {"status":0,"value":null,"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: --> POST /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1/element {"using":"id","value":"list"}
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: ["find",{"strategy":"id","selector":"list","context":"","multiple":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"list","context":"","multiple":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding list using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=io.appium.android.apis:id/list]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/list]
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":{"ELEMENT":"1"}}
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"1"},"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: <-- POST /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1/element 200 32.809 ms - 87 {"status":0,"value":{"ELEMENT":"1"},"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: --> POST /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1/execute {"script":"mobile: scrollTo","args":[{"element":"1","text":"Views"}]}
warn: scrollTo will be removed in a future version of appium
info: [debug] Pushing command to appium work queue: ["element:scrollTo",{"text":"Views","direction":"vertical","elementId":"1"}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:scrollTo","params":{"text":"Views","direction":"vertical","elementId":"1"}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: scrollTo
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
info: <-- POST /wd/hub/session/6b4e912d-9615-4588-8dd4-284429ee81a1/execute 200 3714.465 ms - 76 {"status":0,"value":true,"sessionId":"6b4e912d-9615-4588-8dd4-284429ee81a1"}
^C
Janis-MacBook-Air:bdd janijegoroff$
Janis-MacBook-Air:android_tests janijegoroff$ arc
[1] pry(main)> execute_script('mobile: scrollTo', element: find_element(id: 'list').ref, text: 'Views')
true
[2] pry(main)>
[Appium] Welcome to Appium v1.5.0 (REV 300441be033c7e47ae26de29137aa985ad7169d4)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"platformName":"Android","deviceName":"Nexus 7","app":"/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk","a...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] platformName: 'Android'
[Appium] deviceName: 'Nexus 7'
[Appium] app: '/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk'
[Appium] appPackage: 'io.appium.android.apis'
[Appium] appActivity: '.ApiDemos'
[BaseDriver] Session created with session id: bfaabfd4-d7a2-4285-852b-2bc3490b9080
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_45
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/janijegoroff/android-development/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: 0353ac1609352fcc
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/janijegoroff/android-development/sdk/platform-tools/adb
[debug] [ADB] Setting device id to 0353ac1609352fcc
[BaseDriver] Using local app '/Users/janijegoroff/projects/ruby_lib/android_tests/api.apk'
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","echo","ping"]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","install","/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","install","/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","getprop","ro.build.version.release"]
[debug] [ADB] Uninstalling io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","am","force-stop","io.appium.android.apis"]
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","uninstall","io.appium.android.apis"]
[ADB] App was uninstalled
[AndroidDriver] Remote apk path is /data/local/tmp/43e47d1be6a34c2ada8f5249f5eedd58.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","ls","/data/local/tmp/43e47d1be6a34c2ada8f5249f5eedd58.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","pm","list","packages","-3","io.appium.android.apis"]
[debug] [ADB] App is not installed
[AndroidDriver] Apk is not yet installed
[AndroidDriver] installing apk from remote
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","mkdir","-p","/data/local/tmp"]
[AndroidDriver] Clearing out any existing remote apks with the same hash
[debug] [AndroidDriver] Removing any old apks
[debug] [AndroidDriver] Except ["43e47d1be6a34c2ada8f5249f5eedd58"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","ls","/data/local/tmp/*.apk"]
[debug] [ADB] Uninstalling io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","am","force-stop","io.appium.android.apis"]
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","uninstall","io.appium.android.apis"]
[ADB] App was not uninstalled, maybe it wasn't on device?
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","pm","install","-r","/data/local/tmp/43e47d1be6a34c2ada8f5249f5eedd58.apk"]
[debug] [AndroidDriver] Extracting strings from apk /Users/janijegoroff/projects/ruby_lib/android_tests/api.apk null /var/folders/66/62hrz8650r72_srksbdfwpjm0000gn/T/io.appium.android.apis
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","getprop","persist.sys.language"]
[debug] [ADB] Current device property 'persist.sys.language':
[debug] [ADB] No strings.xml for language '', getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","push","/var/folders/66/62hrz8650r72_srksbdfwpjm0000gn/T/io.appium.android.apis/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","forward","tcp:4724","tcp:4724"]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state 'starting'
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","push","/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","ps","uiautomator"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: -P, 5037, -s, 0353ac1609352fcc, shell, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Bootstrap, -e, pkg, io.appium.android.apis, -e, disableAndroidWatchers, false, -e, acceptSslCerts, false
[debug] [UiAutomator] Moving to state 'online'
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/janijegoroff/android-development/sdk/platform-tools/adb with args: ["-P",5037,"-s","0353ac1609352fcc","shell","am","start","-n","io.appium.android.apis/.ApiDemos","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[Appium] New AndroidDriver session created successfully, session bfaabfd4-d7a2-4285-852b-2bc3490b9080 added to master session list
[MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":tr...
[HTTP] <-- POST /wd/hub/session 200 14095 ms - 728
[HTTP] --> POST /wd/hub/session/bfaabfd4-d7a2-4285-852b-2bc3490b9080/timeouts/implicit_wait
[MJSONWP] Calling AppiumDriver.implicitWait() with args: [0,"bfaabfd4-d7a2-4285-852b-2bc3490b9080"]
[debug] [BaseDriver] Set implicit wait to 0ms
[MJSONWP] Responding to client with driver.implicitWait() result: null
[HTTP] <-- POST /wd/hub/session/bfaabfd4-d7a2-4285-852b-2bc3490b9080/timeouts/implicit_wait 200 5 ms - 76
[HTTP] --> POST /wd/hub/session/bfaabfd4-d7a2-4285-852b-2bc3490b9080/element
[MJSONWP] Calling AppiumDriver.findElement() with args: ["id","list","bfaabfd4-d7a2-4285-852b-2bc3490b9080"]
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"list","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"list","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding list using ID with the contextId: multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=io.appium.android.apis:id/list]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/list]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"1"}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"1"}
[HTTP] <-- POST /wd/hub/session/bfaabfd4-d7a2-4285-852b-2bc3490b9080/element 200 61 ms - 87
[HTTP] --> POST /wd/hub/session/bfaabfd4-d7a2-4285-852b-2bc3490b9080/execute
[MJSONWP] Calling AppiumDriver.execute() with args: ["mobile: scrollTo",[{"element":"1","text":"Views"}],"bfaabfd4-d7a2-4285-852b-2bc3490b9080"]
[HTTP] <-- POST /wd/hub/session/bfaabfd4-d7a2-4285-852b-2bc3490b9080/execute 501 2 ms - 122
^C
Janis-MacBook-Air:bdd janijegoroff$
Janis-MacBook-Air:android_tests janijegoroff$ arc
[1] pry(main)> execute_script('mobile: scrollTo', element: find_element(id: 'list').ref, text: 'Views')
Selenium::WebDriver::Error::UnknownError: Method has not yet been implemented
from /Users/janijegoroff/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.50.0/lib/selenium/webdriver/remote/response.rb:70:in `assert_ok'
[2] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment