Commit Graph

54 Commits

Author SHA1 Message Date
Ruben Gonzalez Alonso 492b668fd1 Add a test to check focused activity in API10 2014-07-23 12:32:38 +02:00
sebv 333b1c3fa6 big code refactoring, disentangling packages 2014-06-17 18:56:00 +08:00
Jonah Stiennon ecc314e2df deviceName is required, unrecognized caps get logged to console. fixes #2765 2014-06-12 16:11:44 -07:00
Jonathan Lipps ad1ced8b98 add test for sessionOverride 2014-06-06 09:42:41 -07:00
sebv 01a5cfcbb6 bugfixes / test fixes (fixing ci) 2014-05-31 22:13:51 +08:00
Jonathan Lipps dea4186633 add --strict-caps mode
the server will error sessions which provide invalid caps
or don't provid valid ones
fix #2500
2014-05-30 16:54:27 -07:00
Jayme Deffenbaugh 7459413331 Check for accessibility id matching selector first and then fall back to string match. 2014-05-29 14:22:01 -07:00
Jonathan Lipps 3c8b2404d1 Merge pull request #2687 from sebv/express-4
Migrated to express 4
2014-05-28 10:28:38 -07:00
Jonathan Lipps e433bbc315 allow automation of chrome beta 2014-05-27 18:25:06 -07:00
sebv f535d41abd migrated to express 4 2014-05-27 23:57:47 +08: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 e73b60e354 Fix iOS callback problem after finding an element by a wrong id 2014-05-09 12:31:40 +02:00
Jonathan Lipps 8a5b698e28 bring grunt lint into parity with jshintrc, and fix lint issues 2014-05-01 12:09:17 -07:00
Jonathan Lipps 9fd48fb9f8 get rid of native tag name in favor of class name 2014-04-18 11:31:49 -07:00
Jonathan Lipps 318617819f change app-package and app-wait-package to appPackage and appWaitPackage 2014-04-10 15:20:24 -07:00
Jonathan Lipps e5e30a8cd4 get rid of old device and version caps 2014-04-10 15:01:11 -07:00
Jonathan Lipps e2c6a9919b remove json page source in favor of xml
and fix a bug in android bootstrap's xpath that snuck in last time
2014-04-09 18:07:02 -07:00
Jonathan Lipps 958aac7e09 remove old xpath support and promote -real xpath to xpath 2014-04-09 16:15:54 -07:00
Jonathan Lipps 3ae838a884 ensure we can use appium 1.0 style launch information from the command line (fix #2231) 2014-04-04 12:21:43 -07:00
Jonathan Lipps ce8adcfe6a update testsuite to use 1.0-style caps
- and fix various issues with specific tests
2014-04-03 18:55:49 -07:00
Jonathan Lipps d1553ccf39 update ios pullFile to account for the fact that the sim root might not have the exact version in it
@DylanLacey have a look at this, it's a gotcha of working with sim paths. My iOS SDK version might be '7.0', but the directory might be '7.0.3', or '7.0.3-64', so I changed this to use the directory finder from settings.js, and to throw a warning if there are multiple dirs. Unfortunately this change makes the unit tests rather impractical since it really depends on getting the status of the filesystem, so I added a new functional test and removed the unit tests.
Also verified tests pass now on 6.1, 7.0, and 7.1 with these changes
2014-04-03 11:54:57 -07:00
Jonathan Lipps 30b7c8b0b6 Merge pull request #2227 from DylanLacey/get_docs
Added pullFile support for iOS simulator.
2014-04-03 10:49:54 -07:00
Dylan Lacey f2f349a36d Added pullFile support for iOS simulator.
`mobile: pullFile {:path => '/Some/Path'}` fetches a file relative to
the root of the device's filesystem.

`mobile: pullFile {:path => '/Applications/Some.app'}` fetches a file
relative to the root of that Application's .app directory, adding in the
GUID.

Fixes #2010, #1807
2014-04-02 22:19:25 -07:00
Jonathan Lipps f6fc69d496 raise an error if someone sends in a bad platformName (fix #2179) 2014-04-02 15:10:31 -07:00
Jonathan Lipps 0b2bd7b276 Merge pull request #2246 from jlipps/new-endpoints
deprecate soon-to-be-removed mobile: methods
2014-04-02 13:33:54 -07:00
Jonathan Lipps 28f966e9a1 deprecate soon-to-be-removed mobile: methods 2014-04-02 13:32:22 -07:00
Dylan Lacey 148336fc04 Use the new capabilities throughout the codebase.
Every entry in `Capabilities.capabilityConversions` is now used to
convert capabilities into the args array.

Change version to versionVersion.
Change device to platformName
Stop aliasing platformVersion to version in Capabilities.js
2014-04-01 16:42:28 -07:00
sebv 767a6bd992 reimplemented queue with async.js 2014-03-28 22:53:47 +08:00
Dylan Lacey 9a7594870c Added deprecation warning for tag name
Add deprecation warnings for class name, tag name locator strategies.

Deprecations warnings will now be thrown for:
* 'tag name' in the native context
* 'class name' in the native context
* 'class name' in the web context

'class_name' is now a valid locator strategy for checkValidLocStrat

Add test for new class name locator
rename createCommand createGetElementCommand
Adding unit tests for new exception throwing
Add test for incorrect UIA class names
2014-03-25 18:07:02 -07:00
Dylan Lacey 0cbdb9b2d4 Log a deprecation message when mobileSource is called with the JSON
type, asking users to use XML type instead.
2014-03-25 03:18:46 -07:00
Jonathan Lipps fd24d65ffe make sure caps are sanitized (fix #2103) 2014-03-20 16:58:03 -07:00
Dylan Lacey 21c8feb8e5 Add new device and automation capabilities, deprecate old caps
Added deprecation warning for older style caps.  Warnings are output
once only for a given function or capability.  A final trailing log
message is released saying there were deprecations.

Busted unit tests into smaller tests

Capabilities are now an object, created by passing the capabilities
to Capabilities.  Properties on that object are copied into the Capabilities object so the API is identical.

Store the value of platformVersion as version.
2014-03-19 09:35:36 -07:00
Jonathan Lipps 873d2df203 make sure we can do forceiPad and safari
heads up @DylanLacey, this will likely cause a conflict with your work
2014-03-14 14:47:48 -07:00
Jonathan Lipps 52a625388e add some negative tests for device extraction 2014-03-04 12:02:34 -08:00
Jonathan Lipps 135044fa82 ensure device detection works in a case-insensitive manner 2014-03-04 10:17:19 -08:00
Jonathan Lipps 7adcac31a7 fix websocket bug and make sure named apps clobber device in caps 2014-03-03 16:41:46 -08:00
Jonathan Lipps 7ac5c172f5 handle starting server with only --force-iphone or --force-ipad for device too 2014-03-03 16:41:46 -08:00
Jonathan Lipps 7c2593c183 add unit tests for device extraction logic 2014-03-03 16:41:46 -08:00
Jonathan Lipps e6e47887cd fix unit tests to mock IOS instead of using weird mock_ios device 2014-03-03 16:41:46 -08:00
sebv 88479e04fa reshuffling tests 2014-02-07 12:51:20 +08:00
sebv 968576af3d jshinting with white=true 2014-01-30 16:58:19 +08:00
sebv 6695dfe5fb Refactored tests to use wd promise-chain api 2014-01-14 04:31:19 +08:00
Jonathan Lipps 16c45f446d allow periods in xpath nodes (fix #881) 2013-11-18 11:48:54 -08:00
Jonathan Lipps 45f47c6610 update unit test to reflect new mock ios 2013-11-14 18:20:17 -08:00
Jonathan Lipps b537c4ae71 remove confusing multiple session handling code
it doesn't actually do anything and was cruft
also, make session overriding non-default based on the mobile
JSONWP discussions
2013-10-28 11:39:50 -07:00
Jonathan Lipps 64f5619331 move uiauto stuff into ios/ and extract status and xpath libs 2013-10-17 12:33:48 -07:00
Jonathan Lipps f673ec3044 merge ios-related files in devices 2013-10-17 12:33:48 -07:00
Jonathan Lipps ff5bf6b4cc put devices in their own place 2013-10-17 10:30:11 -07:00
Jonathan Lipps 3eee9d8a61 move code into lib/ like a normal node project 2013-10-17 10:30:10 -07:00
Jonathan Lipps d8b696d5ce move unit tests into the test/ directory where tests belong 2013-10-17 10:30:08 -07:00