Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen ed4aa96ea4 Bug 1274274 - Rename element store clear function to delete; r=automatedtester
This matches the Map data structure in JavaScript.

MozReview-Commit-ID: 5l2xOb4W2BC

--HG--
extra : rebase_source : 706f8e60fbfc364e56da83f15b9e1a4a94af9c9a
2016-05-20 16:54:42 +01:00
Andreas Tolfsen c87cc1b12b Bug 1274274 - Update exported symbols and correct docs; r=automatedtester
MozReview-Commit-ID: 95ikD0oyrmy

--HG--
extra : rebase_source : 0e8d1aa755c9399eb1970f120c13f796805de2f9
2016-05-20 16:52:01 +01:00
Andreas Tolfsen fb76d98e20 Bug 1274274 - Disassociate wrapValue from element store; r=automatedtester
Moves ElementManager#wrapValue to the testing/marionette/element.js
module level and renames it to toJson.

MozReview-Commit-ID: GJBl2L1GRxZ

--HG--
extra : rebase_source : 5fc81a6b0ebfbd6a12557b3b746e6968c235d674
2016-05-20 16:32:31 +01:00
Andreas Tolfsen 76e7173ffa Bug 1274274 - Disassociate convertWrappedArguments from element store; r=automatedtester
Moved ElementManager#convertWrappedArguments to the
testing/marionette/element.js module scope and renamed it to fromJson.

MozReview-Commit-ID: JMTZcG0JSUE

--HG--
extra : rebase_source : 613faca6a8c81b1ff435c538b0a7347ae548c288
2016-05-20 16:16:56 +01:00
Andreas Tolfsen 8f48cd96ed Bug 1274274 - Remove unused method applyNamedArgs; r=automatedtester
MozReview-Commit-ID: 1FeFZK4VVu2

--HG--
extra : rebase_source : aa89ccc7db341fa330c8777f5a4b73dcf65764f3
2016-05-20 15:13:24 +01:00
Andreas Tolfsen c002fdc182 Bug 1274274 - Disassociate isDisconnected from element store; r=automatedtester
MozReview-Commit-ID: 4uxbLKlgfsL

--HG--
extra : rebase_source : 7e2c236c470b8637aba78461b2c058a005b20ad7
2016-05-20 15:11:37 +01:00
Andreas Tolfsen 0f872f6301 Bug 1274274 - Refactor seen element store; r=automatedtester
Renames ElementManager to element.Store, exposing it on the
testing/marionette/element.js module.  Shortens getKnownElement(uuid)
to get(uuid).  Introduces new method has(uuid) to replace some unnecessary
checks in testing/marionette/driver.js and testing/marionette/listener.js.

MozReview-Commit-ID: D5qAlqrIxi

--HG--
extra : rebase_source : 22fda922e4c5f7bfcd1a5bcbcec6ae1003411535
2016-05-20 15:07:21 +01:00
Andreas Tolfsen c9a06fbbdc Bug 1274274 - Convert ElementManager to a class; r=automatedtester
MozReview-Commit-ID: EqcuWGxxlC

--HG--
extra : rebase_source : 01865b2ef001eaa0e77f80a739545a0f1ed3a0cc
2016-05-20 13:32:52 +01:00
Andreas Tolfsen c47354a3ef Bug 1274274 - Decouple element retrieval methods; r=automatedtester
Moves element retrieval methods from ElementManager to the
testing/marionette/element.js module itself.  This means some more
work needs to be done by the caller, but avoids bloat by ensuring
ElementManager does not end up as a super-object.

MozReview-Commit-ID: 5LGe0vpSWwS

--HG--
extra : rebase_source : d7f4bd64cd1a92ad20a33496708d3f0136531d9f
2016-05-20 13:28:27 +01:00
Andreas Tolfsen 47fd1a56f6 Bug 1272653 - Make Get Element Attribute spec compatible; r=automatedtester
MozReview-Commit-ID: K5PsnmRrDJk
2016-05-24 10:34:23 +01:00
Andreas Tolfsen 0824f63ac1 Bug 1274271 - Remove unused function applyNamedArgs; r=automatedtester
MozReview-Commit-ID: DU5xHDLL4Ww

--HG--
extra : rebase_source : 59949b4c99e007231bf68f94bd1b513c7d43376b
2016-05-19 14:53:00 +01:00
David Burns 42526cc80d Bug 1273275: scroll to the top of elements before interacting r=ato
This allows us to converge with webdriver project which scrolls to the
start of the element instead of the end.

MozReview-Commit-ID: ErQ18bTeo5m

--HG--
extra : rebase_source : 0cb69c80da561e0b0fda288841c415fd206fe907
2016-05-17 11:04:30 +01:00
Maja Frydrychowicz 49a1312230 Bug 1257922 - Marionette runs on ASAN fail due to fatal NS_ERROR_NOT_IMPLEMENTED JavascriptException; r=automatedtester
MozReview-Commit-ID: KcxZLYz5prb

--HG--
extra : rebase_source : 71171bd1d28c3ab9f0b1ff253d129e65ade70e7d
2016-04-29 17:17:36 -04:00
Andreas Tolfsen 820971ad9f Bug 1257153 - Cancel implicit wait timers on rejection; r=automatedtester
This fixes a leak where timers were not cancelled upon promise rejection.
When the function passed to implicitlyWaitFor is rejected for not finding
elements after the timeout has elapsed, the elementSearch callback is
no longer called because the timer is cancelled when it calls reject().

MozReview-Commit-ID: FR2iA8s1NjX

--HG--
extra : rebase_source : 80f4b13d15cf3497a8d4b20bca98450ad3bc1b5e
2016-03-16 12:27:36 +00:00
Henrik Skupin 4438ee04e1 Bug 1256439 - Run implicit wait callback once before start polling. r=automatedtester
By using a timer the first invocation of the callback is happening after the specified interval.
That means by a default of 100ms we loose that time on every call of implicit wait, and it will
slow-down the test execution drastically. To prevent this lets manually invoke the callback
before starting the timer.

MozReview-Commit-ID: Ayy1GPEaY92

--HG--
extra : rebase_source : 2fac7b5578ec42af5050fad21ca9c3d5cfdca3e1
2016-03-15 14:38:32 +01:00
Andreas Tolfsen e3854ffb41 Bug 1245064 - Implement element pointer-interactability; r=automatedtester
Implements the WebDriver pointer-interactability algorithm described in
http://w3c.github.io/webdriver/webdriver-spec.html#dfn-interactable-element.

The specification compatible behaviour is enabled only when the client
requests the capability specificationLevel >= 0.

MozReview-Commit-ID: BP60SGj49OW

--HG--
extra : rebase_source : d84d38510e28ab5e0debce2051e336e1fd3f0f86
2016-03-04 16:44:38 +00:00
Carsten "Tomcat" Book 38c337c81b Backed out changeset 1dd0bcc1c45e (bug 1245064) 2016-03-09 14:03:07 +01:00
Andreas Tolfsen ed18a3de7d Bug 1245064 - Implement element pointer-interactability; r=automatedtester
Implements the WebDriver pointer-interactability algorithm described in
http://w3c.github.io/webdriver/webdriver-spec.html#dfn-interactable-element.

The specification compatible behaviour is enabled only when the client
requests the capability specificationLevel >= 0.

MozReview-Commit-ID: BP60SGj49OW

--HG--
extra : rebase_source : 357accaa38b44704fcaf839aa50e1e29af0b3f99
2016-03-04 16:44:38 +00:00
Andreas Tolfsen 42c25b995a Bug 1254521 - Add return type docs for element.inViewport; r=automatedtester
MozReview-Commit-ID: Budv7EapTfo

--HG--
extra : rebase_source : 98d9684610b3f594a66a01228473b1a8d602024a
2016-03-08 13:53:00 +00:00
Andreas Tolfsen 26578b425f Bug 1254521 - Add return type docs for element.isVisible; r=automatedtester
MozReview-Commit-ID: 9tjnHPmYSdq

--HG--
extra : rebase_source : d51af3dd9760149f0b0a175b6daaf562bddb582d
2016-03-08 13:52:38 +00:00
Andreas Tolfsen a9b5a85fc1 Bug 1251763 - Correct type check on singular returned elements; r=automatedtester
The return values from the different element search functions in searchFn
have inconsistent return types, and a null check is usually not what
we want.  In order to have findElement consistently return a no such
element error, we need to do a loose false test.

This bug has affected the findElement command when using the tag
name, name, class name, link text, and partial link text selectors.
Other selectors were unaffected.

MozReview-Commit-ID: C26R3YrqKyf

--HG--
extra : rebase_source : dc723ae147b9208b4274ffc4a5338f0107ddd0ed
2016-03-08 16:23:50 +00:00
Andreas Tolfsen 05e86fe521 Bug 1253244 - Correct x,y offset type checks and add tests; r=automatedtester
The xOffset and yOffset arguments to element.coordinates previously
checked loose falsiness.  If a number <= 0 would be given as an argument,
they would not be used and it would return the centre of the element.

This change adds more checks, documentation, and tests.

MozReview-Commit-ID: KmsiVFipzWx

--HG--
extra : rebase_source : 96e6c8c127071356fec029f5eaa4254ae60930b3
2016-03-04 15:34:28 +00:00
Andreas Tolfsen 1a08c44699 Bug 1253244 - Use element.coordinates in listener; r=automatedtester
MozReview-Commit-ID: 4sWZNXrenqZ

--HG--
extra : rebase_source : 8a212826ff0dbe4a2555a9712f7fd7039f7ad5ff
2016-03-03 14:28:40 +00:00
Andreas Tolfsen 772f8fbb0b Bug 1253248 - Use element.Strategy enum consistently; r=automatedtester
Removes the exported constants from testing/marionette/element.js and
introduces the migrates to using the element.Strategy enum consistently
throughout Marionette.

The supported strategies array passed into ElementManager's ctor has
also received some much needed attention and now actually works.

MozReview-Commit-ID: LPuDX0aishM

--HG--
extra : rebase_source : bb06ea5a25d9a0dbcd6f3e1311d31df95cd4e26d
2016-03-04 12:01:09 +00:00
Andreas Tolfsen ea6b2b1f06 Bug 1253236 - Reuse element.isXULElement; r=automatedtester
MozReview-Commit-ID: 7P02xsSLuCl

--HG--
extra : rebase_source : 6801299b05fe7fdbceebdf1e0a84e4544863e111
2016-03-03 14:21:45 +00:00
Andreas Tolfsen a1495c253c Bug 1253236 - Remove window argument from element.isVisible; r=automatedtester
MozReview-Commit-ID: ITzY9RXjJCG

--HG--
extra : rebase_source : 7954e5d2891a8d214fdbf00ea1b0b62acc0482b3
2016-03-03 14:20:39 +00:00
Andreas Tolfsen 4a0bcbbee4 Bug 1253236 - Rename element.checkVisible to isVisible; r=automatedtester
MozReview-Commit-ID: 1fkH93OXjWF

--HG--
extra : rebase_source : 39c628d9ca7ef1713a68e620a8c759813c5415fc
2016-03-03 14:18:52 +00:00
Andreas Tolfsen a1b600fd96 Bug 1250102 - Rewrite element location to be promise-compatible; r=automatedtester
Element location is rewritten with this patch in order to make it
compatible for use with promises.  This makes consuming the API nicer
in the wider context of Marionette, since it no longer takes callbacks
and no longer has to be wrapped in external promises to be compatible
with the new dispatching technique.

MozReview-Commit-ID: DjZOXPqkZ5j

--HG--
extra : rebase_source : a5f9fb0b252584e69bbba7d1a67cc4ef45e67b03
2016-02-23 15:18:55 +00:00
Andreas Tolfsen 18d2b57abd Bug 1250102 - Turn element keys into constants; r=automatedtester
MozReview-Commit-ID: 5r6MuIcTwbJ

--HG--
extra : rebase_source : 5815b7f070d976fe727774835bd0084ce8073b45
2016-02-23 15:03:05 +00:00
Andreas Tolfsen cb2ec4bbdf Bug 1250102 - Correct exported symbol from testing/marionette/element.js; r=automatedtester
MozReview-Commit-ID: 9naIfpy9HPD

--HG--
extra : rebase_source : dc6b96137ed6c378772477cc36687a1655028ae3
2016-02-23 15:01:12 +00:00
Andreas Tolfsen c9fdd91435 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
MozReview-Commit-ID: KAGGXOHMvyM

--HG--
rename : testing/marionette/elements.js => testing/marionette/element.js
extra : histedit_source : d76eb69ad2f5781bcd7a4c0cda4f2f3c6abe840c
extra : rebase_source : d7eb17a424f7c542f0081d4ea938bd461f3583ae
extra : commitid : 77YYJxt23TN
extra : source : 80ae953819c81f7aad1c635311fb0ab5517ca1dd
extra : intermediate-source : 63a56310a1b5593eeec4d546c87c9e9c4c04252d
2016-02-03 19:14:10 +00:00
Carsten "Tomcat" Book 33e27d2555 Backed out 18 changesets (bug 1245153) for multiple test failures
Backed out changeset 18d54b8d4ae8 (bug 1245153)
Backed out changeset 98b6d0c053c0 (bug 1245153)
Backed out changeset c29a348930a4 (bug 1245153)
Backed out changeset f79252e92acc (bug 1245153)
Backed out changeset 9f3f1c358e47 (bug 1245153)
Backed out changeset 3b9e9a027fa7 (bug 1245153)
Backed out changeset 6da8099573f3 (bug 1245153)
Backed out changeset 63a56310a1b5 (bug 1245153)
Backed out changeset 5fe42d498a2a (bug 1245153)
Backed out changeset b3be2d2f3ac1 (bug 1245153)
Backed out changeset ad5bf32d8fef (bug 1245153)
Backed out changeset 68a6dda373d2 (bug 1245153)
Backed out changeset 6ebd9fde50c0 (bug 1245153)
Backed out changeset e41a5b41859a (bug 1245153)
Backed out changeset 048d70070751 (bug 1245153)
Backed out changeset eff85dc0eaa9 (bug 1245153)
Backed out changeset dc6460e0f336 (bug 1245153)
Backed out changeset 36526a2e8b00 (bug 1245153)

--HG--
rename : testing/marionette/event.js => testing/marionette/EventUtils.js
rename : testing/marionette/action.js => testing/marionette/actions.js
rename : testing/marionette/atom.js => testing/marionette/atoms/atoms.js
rename : testing/marionette/element.js => testing/marionette/elements.js
rename : testing/marionette/frame.js => testing/marionette/frame-manager.js
rename : testing/marionette/interaction.js => testing/marionette/interactions.js
2016-02-11 17:05:41 +01:00
Andreas Tolfsen 111c3bc1a1 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
MozReview-Commit-ID: KAGGXOHMvyM

--HG--
rename : testing/marionette/elements.js => testing/marionette/element.js
extra : commitid : 77YYJxt23TN
extra : rebase_source : 9ed6f3e8d0b43e68716c462b83cdd718346b6c16
extra : source : 80ae953819c81f7aad1c635311fb0ab5517ca1dd
extra : histedit_source : d76eb69ad2f5781bcd7a4c0cda4f2f3c6abe840c
2016-02-03 19:14:10 +00:00
Carsten "Tomcat" Book d07b3125f8 Backed out 16 changesets (bug 1245153) for mochitest test-bustage on a CLOSED TREE
Backed out changeset 30c8ec933737 (bug 1245153)
Backed out changeset 4c2b1902d7cd (bug 1245153)
Backed out changeset 1be5f60393a0 (bug 1245153)
Backed out changeset 22321e6b65e9 (bug 1245153)
Backed out changeset c1e0abbfa66e (bug 1245153)
Backed out changeset 80ae953819c8 (bug 1245153)
Backed out changeset 3edb67388ad6 (bug 1245153)
Backed out changeset 55f64197f6b5 (bug 1245153)
Backed out changeset 6bb93562a576 (bug 1245153)
Backed out changeset 5da7628c3767 (bug 1245153)
Backed out changeset bd41e4ab829d (bug 1245153)
Backed out changeset ee7ee24cc65e (bug 1245153)
Backed out changeset 4b2a5ee7199e (bug 1245153)
Backed out changeset d75ad1397656 (bug 1245153)
Backed out changeset 1f5e37f8e446 (bug 1245153)
Backed out changeset aec0a0166685 (bug 1245153)

--HG--
rename : testing/marionette/event.js => testing/marionette/EventUtils.js
rename : testing/marionette/action.js => testing/marionette/actions.js
rename : testing/marionette/atom.js => testing/marionette/atoms/atoms.js
rename : testing/marionette/element.js => testing/marionette/elements.js
rename : testing/marionette/frame.js => testing/marionette/frame-manager.js
rename : testing/marionette/interaction.js => testing/marionette/interactions.js
extra : rebase_source : 11bba1116e87ed79fa72f24ff41216a6e3fb00d6
2016-02-05 14:18:19 +01:00
Andreas Tolfsen 462619ecc4 Bug 1245153 - Rename elements.js to element.js; r=automatedtester
--HG--
rename : testing/marionette/elements.js => testing/marionette/element.js
extra : commitid : 77YYJxt23TN
extra : rebase_source : 987be9441ad296eaf9e4a1624d9af96d496d687d
extra : histedit_source : d76eb69ad2f5781bcd7a4c0cda4f2f3c6abe840c
2016-02-03 19:14:10 +00:00