Commit Graph

21 Commits

Author SHA1 Message Date
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