- longTap's mLongPressTimeout is too short.
- https://android.googlesource.com/platform/frameworks/testing/+/android-sdk-support_r11/uiautomator/library/src/com/android/uiautomator/core/InteractionController.java
pip install ipython
scrapy shell http://www.example.com
$ node .
info: Welcome to Appium v0.17.2 (REV f46a221b380630a1cbf6dbcb18511c3dc2d5e916)
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
info: Non-default server args: {"merciful":true}
debug: Appium request initiated at /wd/hub/session/9c4abc4d-917c-40be-8e44-36f45ae587ab
debug: Request received with params: {}
DELETE /wd/hub/session/9c4abc4d-917c-40be-8e44-36f45ae587ab 404 10ms - 53b
debug: Appium request initiated at /wd/hub/session
$ node .
info: Welcome to Appium v0.17.6 (REV 60e9aa7fd5e1f0632fa459f37f08ba4f6158e8e6)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: socket.io started
info: Non-default server args: {"merciful":true}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"Linux","platformVersion":"4.3","app":"/Users/user/training/modules/source/java_android/api.apk","platformName":"Android","device-type":"tablet","browserName":"android","name":"Java Android Training Wed Mar 26 22:18:07 EDT 2014","device-orientation":"portrait","version":"4.3"}}
warn: [DEPRECATED] The version capability has been deprecated and will be removed. Please use the platformVersion capability instead.
info: No app-activity desired capability or server param. Parsing from apk.
This file contains hidden or 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
| =begin | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ using indexPath: /0/0/0/0/2 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ before size: 6 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ after size: 6 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ index: 0 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ index: 0 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ index: 0 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ index: 0 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ index: 0 | |
| info: [UIAUTOMATOR STDOUT] ~~~~~~~~~~~~~~~~~ index: 2 |
$ bin/test.sh --android
/usr/bin/xcode-select
RUNNING ANDROID TESTS
---------------------
process.env.LAUNCH_TIMEOUT --> undefined
gappium
HelloGappium
This file contains hidden or 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: --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"ios","app":"/Users/tcollins/Documents/Git/bi-iPhone/iPhoneBI/build/Debug-iphonesimulator/iPhoneBI.app","#app":"/Users/tcollins/Documents/TestTools/appium/sample-code/apps/UICatalog/build/Release-iphonesimulator/UICatalog.app","deviceName":"iPhone Simulator"}} | |
| debug: Appium request initiated at /wd/hub/session | |
| info: <-- POST /wd/hub/session 303 1.583 ms - 9 | |
| debug: Request received with params: {"desiredCapabilities":{"platformName":"ios","app":"/Users/tcollins/Documents/Git/bi-iPhone/iPhoneBI/build/Debug-iphonesimulator/iPhoneBI.app","#app":"/Users/tcollins/Documents/TestTools/appium/sample-code/apps/UICatalog/build/Release-iphonesimulator/UICatalog.app","deviceName":"iPhone Simulator"}} | |
| debug: Appium request initiated at /wd/hub/session/4e23b43c-111b-40e0-a10b-08cfa03126ce | |
| debug: Request received with params: {} | |
| debug: Responding to client with success: {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"brow |
This file contains hidden or 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
| import collections, json | |
| from urllib import urlretrieve | |
| from urlparse import urljoin | |
| from csv import DictReader, reader as csv_reader | |
| import scrapinghub | |
| from project.settings import SH_APIKEY | |
This file contains hidden or 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
| // id from R constant | |
| String editTextUserInput = getTargetContext().getResources().getResourceName(R.id.editTextUserInput); | |
| DroidDrivers.get().find(By.resourceId(editTextUserInput)); | |
| // hard coded id (same as above) | |
| DroidDrivers.get().find(By.resourceId("com.example.android.testing.espresso.BasicSample:id/editTextUserInput")); |