Commit Graph

255 Commits

Author SHA1 Message Date
bootstraponline 05bc569b1d Update complex find with new uiautomator constants 2014-05-27 14:27:40 -04:00
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
bootstraponline f9266b5dfe Check exists before read file 2014-05-20 12:27:21 -04:00
Isaac Murchie fc595d1557 Allow String keycode 2014-05-16 10:18:09 -07: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
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
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 877b0db1c6 fixing jscs styling error 2014-05-13 19:03:17 +08:00
Ruben Gonzalez Alonso be347e9257 Check updateStrings errors and improve parseLocalizableStrings in iOS 2014-05-13 09:59:24 +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
bootstraponline 4dc4df3368 Restore API check for setCompressedLayoutHeirarchy 2014-05-08 12:41:58 -04: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
Jonathan Lipps 99dd13c043 fix up selendroid tests 2014-05-02 18:31:50 -07:00
Jonathan Lipps 8a5b698e28 bring grunt lint into parity with jshintrc, and fix lint issues 2014-05-01 12:09:17 -07:00
bootstraponline fc35a190ca Improve DumpWindowHierarchy.java 2014-04-28 18:28:00 -04:00
sebv 1df406033e Using Async.queue to queue commands 2014-04-28 13:01:04 -07:00
Fan Bai d9947dad35 Fix issue when iterating the entries
Every time you call entries.pop(), the entries.length minus 1.
We should check entries.length>0 as the end of loop.

This request is same as pull request #2426. fix a typo error.
2014-04-28 09:36:59 -07:00
Ruben Gonzalez Alonso 6e326a29af Fix Appium crash when fails getting source page 2014-04-23 09:44:05 +02:00
Jonathan Lipps 9fd48fb9f8 get rid of native tag name in favor of class name 2014-04-18 11:31:49 -07:00
Payman Delshad abf26a8fb3 Allow for whitespace in app path. 2014-04-17 11:16:44 -07:00
Isaac Murchie ec28b95468 Allow android multi touch actions without an element 2014-04-14 11:04:25 -07:00
shyam aef110413b ApkSigning when using custome keystore fails
ApkSigning fails when using a custom keystore. Looking into the logs I realized that the options to the jarsigner command are not in the right order. Once I made this change the signing went ahead as expected.
2014-04-11 14:47:14 -07:00
Jonathan Lipps 55100ce28b camel-case device-ready-timeout (fix #2268) 2014-04-10 15:41:26 -07:00
Jonathan Lipps 3583347584 camel-case app-(wait-)activity 2014-04-10 15:38:24 -07:00
Jonathan Lipps 318617819f change app-package and app-wait-package to appPackage and appWaitPackage 2014-04-10 15:20:24 -07:00
Isaac Murchie 8e89c749ef Fix bugs in action handling 2014-04-10 10:59:50 -07:00