Commit Graph

688 Commits

Author SHA1 Message Date
Jonah
6ca80b0287 Merge pull request #2657 from bootstraponline/npe_fix
Fix DumpWindowHierarchy NullPointerException
2014-05-23 13:27:14 -07:00
bootstraponline
3baa5f53dc Fix DumpWindowHierarchy NullPointerException 2014-05-23 16:26:26 -04:00
bootstraponline
ce6b4f0867 uninstall before install remote apk 2014-05-23 13:31:19 -04:00
sebv
155004a709 fixed chrome sessionId bug 2014-05-22 14:44:41 +08:00
sebv
191963a485 mitigating against redundant/late session closing 2014-05-21 16:34:59 +08:00
bootstraponline
f9266b5dfe Check exists before read file 2014-05-20 12:27:21 -04:00
Jonathan Lipps
a0c777d961 Merge pull request #2590 from paymand/contexts_fix
Don't send the JSON response as Error in getJSONFromUrl().
2014-05-17 01:44:29 -07:00
Isaac Murchie
fc595d1557 Allow String keycode 2014-05-16 10:18:09 -07:00
Payman Delshad
8d5bb05e1f Don't send the JSON response as Error in getJSONFromUrl(). 2014-05-16 14:22:05 +02:00
Jonathan Lipps
0ef5014c4f ensure we check for err as well as status 2014-05-15 15:05:21 +01:00
Jonathan Lipps
ddd5c6849c fix selendroid location 2014-05-15 10:17:44 +01:00
Isaac Murchie
5ae62f983e Fix touch actions below API 18 2014-05-14 13:13:31 -07:00
Jonathan Lipps
1cae9c593c fix #2567 2014-05-14 12:25:29 +01:00
bootstraponline
1b255378ab Discard NotImportantViews only for XPath & DumpWindow
When setCompressedLayoutHeirarchy is enabled, views not marked as important to accessibility are discarded. This must be enabled for XPath and page source to work. If it's left enabled then it's not possible to find unimportant elements via other locator strategies.

If discard is toggled back to false at the end of an XPath request it will break XPath. To safely set discard to false, the code waits for the next find request that doesn't use XPath.

Thanks @paymand for figuring out how to make this work!
2014-05-13 12:48:37 -04:00
Jonathan Lipps
df0bdcb15c fix spacing 2014-05-13 16:35:03 +01:00
Jonathan Lipps
4f9b96ee9c use appium-uiauto getElementById instead of sending
a bunch of brittle javascript over the wire
fix #2542
2014-05-13 15:36:15 +01:00
Ruben Gonzalez Alonso
b6428069fe Use --adb option with chrome tests 2014-05-13 15:45:16 +02:00
Ruben Gonzalez Alonso
6ee18da679 Fix error launching avd 2014-05-13 15:45:15 +02:00
bootstraponline
af89c29947 Merge pull request #2545 from rgonalo/getStrings
Get localized strings in Android, Selendroid and iOS
2014-05-13 06:40:46 -07:00
sebv
5dfe4d4f5c jscs style fix 2014-05-13 19:47:01 +08:00
Jonathan Lipps
b263103c46 Merge pull request #2556 from sebv/jscs
Added node-jscs check
2014-05-13 04:37:41 -07:00
sebv
877b0db1c6 fixing jscs styling error 2014-05-13 19:03:17 +08:00
Vitalii Grygoruk
6294bcbcb2 Fix the bug with corrupted search context value "ctx" while during xpath search
avoiding bad syntax in case of context is empty string
2014-05-13 11:23:53 +02:00
Ruben Gonzalez Alonso
be347e9257 Check updateStrings errors and improve parseLocalizableStrings in iOS 2014-05-13 09:59:24 +02:00
Ruben Gonzalez Alonso
dbf5868c79 Add optional argument 'language' to getStrings in iOS 2014-05-13 09:58:06 +02:00
Ruben Gonzalez Alonso
858b4a30e9 Add optional argument 'language' to getStrings in Android and Selendroid 2014-05-13 09:58:05 +02:00
Ruben Gonzalez Alonso
2f0298463b Fix error removing old strings file from windows 2014-05-13 09:58:04 +02:00
Ruben Gonzalez Alonso
72d0237ab9 Extract strings from apk and add getStrings method on selendroid 2014-05-13 09:58:03 +02:00
Ruben Gonzalez Alonso
35cfc47e1e Extract strings from apk corresponding to device language instead of default to be used with ID location strategy in Android 2014-05-13 09:58:03 +02:00
bootstraponline
37b4b667f0 Always setCompressedLayoutHeirarchy 2014-05-12 15:14:31 -04:00
Jonathan Lipps
a69c0478e6 Merge pull request #2529 from penguinho/android-language
Adding language and country support to Android
2014-05-12 08:18:38 -07:00
Dan Cuellar
5401b42d3e Adding language and country support to Android 2014-05-12 07:55:22 -07:00
Jonathan Lipps
802ab048b6 clearer activity error message 2014-05-12 10:44:12 +01:00
Jonathan Lipps
e121810087 Merge pull request #2522 from rgonalo/ios-wrongid
Fix iOS callback problem after finding an element by a wrong id
2014-05-12 01:31:11 -07:00
Jonathan Lipps
53ed1c4425 Merge pull request #2512 from jlipps/master
don't allow webkitremotedebugger connection errors to crash appium
2014-05-12 01:28:34 -07:00
Ruben Gonzalez Alonso
e73b60e354 Fix iOS callback problem after finding an element by a wrong id 2014-05-09 12:31:40 +02:00
bootstraponline
4dc4df3368 Restore API check for setCompressedLayoutHeirarchy 2014-05-08 12:41:58 -04:00
Jonathan Lipps
5885010f7e don't allow webkitremotedebugger connection errors to crash appium
and use regular node-style error handling
2014-05-08 17:01:19 +01:00
Jonathan Lipps
6ca3708869 Merge pull request #2491 from imurchie/isaac-gesture-issues
Fix defaults for swipe duration
2014-05-08 08:09:15 -07:00
bootstraponline
22993148b5 Enable compress xml by default for Android XPath 2014-05-08 09:48:49 -04:00
Jonathan Lipps
0704d6a83c Merge pull request #2503 from imurchie/isaac-unicode
Allow for encoding of non-ASCII text in Android
2014-05-08 05:50:45 -07:00
Isaac Murchie
2bcc775b01 Allow for encoding of non-ASCII text in Android 2014-05-07 15:55:56 -07:00
bootstraponline
44f92faf50 Output useful information in logger.info 2014-05-07 17:03:42 -04:00
bootstraponline
8f73521d9d Fix double space in log message when not is falsey 2014-05-07 15:41:10 -04:00
bootstraponline
74a233b6e8 Fix compressXml
The old compressXml did not presist across uiautomator sessions.
By requesting 'DumpWindowHierarchyCompressed' it ensures the result is
always compressed, even if the server had been restarted.

For some reason if compressXml is disabled then the xpath index on Android
will return the wrong result.
2014-05-07 15:23:18 -04:00
Isaac Murchie
19d6b77f0e Fix defaults for swipe duration 2014-05-06 15:38:49 -07:00
Jonathan Lipps
9ce331f6e8 Merge pull request #2483 from bootstraponline/clean_up
Clean up
2014-05-06 06:36:05 -07:00
Fan Bai
072b5fab53 Fix issue - failed to pass multi params in avdArgs
when passing multiple params in avdArgs, for instance, --avd-args="-port 5564", transfer the value string into array to avoid failures when spawning a new process
2014-05-06 14:17:44 +01:00
Jonathan Lipps
d8d0a26706 fix lint errors 2014-05-06 14:15:39 +01:00
bootstraponline
bda81ba78e Remove dead code 2014-05-05 22:26:59 -04:00