Commit Graph

14 Commits

Author SHA1 Message Date
bootstraponline
17e3fc3edb Prevent leaking state across executions 2014-03-21 11:05:50 -04:00
Payman Delshad
60dae83db1 Fixup for #2085. set isElement to false if getElement() throws. 2014-03-21 11:30:52 +01:00
bootstraponline
d70f8ac01d Clean up debug logging 2014-03-07 15:10:53 +01:00
Payman Delshad
113fe5ce10 Added support for touch{Down|Up|Move} on Android. 2014-03-07 15:10:52 +01:00
Jonathan Lipps
f0193f3e26 Merge pull request #1970 from bootstraponline/source_fix
Fix Android page source
2014-02-27 13:20:26 -08:00
bootstraponline
cce7ee0126 Android longClick x, y, and duration support
Ruby examples:

mobile :longClick, element: el.ref

mobile :longClick, element: el.ref, duration: 3000

mobile :longClick, x: 400, y: 297, duration: 3000

mobile :longClick, x: 0.5, y: 0.244
2014-02-27 16:18:05 -05:00
bootstraponline
591c0dbc4e Fix Android page source 2014-02-27 10:19:50 -05:00
Payman Delshad
b0976fece8 Android: Added support for 'direction' to scrollTo.
This fix adds a new option (direction) to 'mobile: scrollTo'.
If 'horizontal' is provided (or if the view is a HorizontalScrollView),
we will call setAsHorizontalList() before commencing the scroll.
2014-02-26 15:44:39 +01:00
bootstraponline
afa2928ddf Fix long click on Android
Android's uiautomator has a broken long click implementation.
uiautomator will not pause long enough on long click which causes Android to detect the long click as a normal click.

This fix uses reflection to access uiautomator's private touchDown/touchUp methods to reimplement longClick correctly.

In theory I should be able to obtain a reference to android.app.UiAutomation without using reflection. However this doesn't seem possible when using uiautomator. getInstrumentation().getUiAutomation(); doesn't work because we're not using instrumentation.
2014-01-31 16:31:06 -05:00
rockbot
5d88a0eb48 Improves error handling in bootstrap's find.java (fixes #1549) 2014-01-03 11:52:26 -08:00
bootstraponline
f1f40fd66a Fix app not responding 2013-12-26 14:01:01 -05:00
Payman Delshad
36427cf6d1 Support for getClassName() from Android API level 18. 2013-10-21 13:40:31 +02:00
Saikat Maitra
00379af68d Fixed bootstrap build error to download dependencies
Below is error message. 

[ERROR] Failed to execute goal on project bootstrap: Could not resolve dependencies for project io.appium.android:bootstrap:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: android:android:jar:4.3_r1, android.test.uiautomator:uiautomator:jar:4.3_r1: Could not find artifact android:android:jar:4.3_r1 in central (http://repo1.maven.org/maven2) -> [Help 1]
2013-10-18 17:57:14 +05:30
Jonathan Lipps
5ad5df488b move all android-related files together into devices/android 2013-10-17 12:33:49 -07:00