Commit Graph

295 Commits

Author SHA1 Message Date
David Heiberg
a077d6cd01 Bug 1577503 - Replace filter_map(p).next() with find(p) r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D44973

--HG--
extra : moz-landing-system : lando
2019-09-06 12:53:08 +00:00
David Heiberg
22491909e6 Bug 1577503 - Automatic Clippy fixes r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D44972

--HG--
extra : moz-landing-system : lando
2019-09-06 12:07:20 +00:00
David Heiberg
c4e8cd9c12 Bug 1577503 - Use lossless conversions instead of casting r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D44971

--HG--
extra : moz-landing-system : lando
2019-09-06 12:07:05 +00:00
David Heiberg
2fcde7c8fe Bug 1577503 - Allow clippy double options r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D44970

--HG--
extra : moz-landing-system : lando
2019-09-06 12:06:56 +00:00
David Heiberg
b0275fcbf9 Bug 1577503 - Remove redundant static lifetimes r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D44969

--HG--
extra : moz-landing-system : lando
2019-09-06 12:06:53 +00:00
Bastien Orivel
a5f69db222 Bug 1576450 - Update cookie to 0.12 in webdriver. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D43354

--HG--
extra : moz-landing-system : lando
2019-08-25 23:22:11 +00:00
Simon Sapin
c65755ac41 Bug 1568540 - Update the url crate to 2.0 r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42364

--HG--
extra : moz-landing-system : lando
2019-08-17 16:26:27 +00:00
James Graham
d289d43116 Bug 1573414 - Make geckodriver, webdriver and mozbase #![forbid(unsafe_code)], r=ato
We don't expect to use any unsafe and doing this helps static analysis tools
determine that the library is low risk from the point of view of memory unsafety,
and makes it less likely someone will add in some unsafe code in the future without
appropriate care.

Differential Revision: https://phabricator.services.mozilla.com/D41730

--HG--
extra : moz-landing-system : lando
2019-08-13 13:27:51 +00:00
Andreas Tolfsen
91b38964c8 bug 1572397: webdriver: release v0.40.0; r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D41185

--HG--
extra : moz-landing-system : lando
2019-08-08 15:35:42 +00:00
georgeroman
0aad00a99a Bug 1568327 - [geckodriver] Make ActionSequence's id field mandatory. r=whimboo
Make sure that deserializing an ActionSequence which misses the "id" field raises an "InvalidArgument" error.

Differential Revision: https://phabricator.services.mozilla.com/D39784

--HG--
extra : moz-landing-system : lando
2019-08-01 10:26:50 +00:00
Brindusan Cristian
7e24c23303 Backed out changeset facd6af4e16c (bug 1568327) for wpt failures at perform_actions/key.py. CLOSED TREE 2019-07-31 13:11:03 +03:00
georgeroman
890305ff93 Bug 1568327 - Make ActionSequence's id field mandatory r=whimboo
Change ActionSequence's id field from Option<String> to String

Differential Revision: https://phabricator.services.mozilla.com/D39784

--HG--
extra : moz-landing-system : lando
2019-07-31 06:55:16 +00:00
Andreas Tolfsen
c757d8208f bug 1569140: webdriver: lint; r=webdriver-reviewers,automatedtester
Bug 1568889 enabled the rustfmt lint checks in continuous integration,
and while they did not cause any errors, this is a follow-up patch
to fix the non-fatal warnings.

Differential Revision: https://phabricator.services.mozilla.com/D39484

--HG--
extra : moz-landing-system : lando
2019-07-26 12:00:31 +00:00
georgeroman
ccc3d023a4 Bug 1569466 - Implement Deserialize for ErrorStatus. r=ato
Implement Deserialize for ErrorStatus

Differential Revision: https://phabricator.services.mozilla.com/D39632

--HG--
extra : moz-landing-system : lando
2019-07-29 09:35:15 +00:00
georgeroman
407f908b2d Bug 1568657 - Change WebDriver PointerType to implement Clone r=ato
Implement Clone for WebDriver's actions::PointerType

Differential Revision: https://phabricator.services.mozilla.com/D39110

--HG--
extra : moz-landing-system : lando
2019-07-26 10:50:44 +00:00
Bastien Orivel
b5e0d251ee Bug 1562043 - Fix a debug statement when processing webdriver requests. r=ato
Since we moved to warp, this debug statement was printing the
unprocessed path (i.e `/session/{sessionId}`) because the closure didn't
know about the real path that was called (it only knew about the route
that was triggered and the parameters that were passed).

I added a warp filter to get the unprocessed full path to be able to
make logging useful again. This also fixes the body which had an extra
Result around it when it was debugged.

Differential Revision: https://phabricator.services.mozilla.com/D37156

--HG--
extra : moz-landing-system : lando
2019-07-08 09:54:25 +00:00
Bastien Orivel
761235d949 Bug 1396824 - Part 1: Replace the webdriver router by warp. r=ato
This allows for easy support for HEAD requests without any code on our
side.

Differential Revision: https://phabricator.services.mozilla.com/D34631

--HG--
extra : moz-landing-system : lando
2019-06-24 09:26:59 +00:00
Emilio Cobos Álvarez
3a16c93150 Bug 1556602 - Fix various warnings with rust 1.37 nightly. r=froydnj
In particular:

 * trait objects without an explicit `dyn` are deprecated
 * `...` range patterns are deprecated

I think these shouldn't really warn by default and should be clippy / opt-in
lints, but anyway, doesn't hurt.

Differential Revision: https://phabricator.services.mozilla.com/D35135

--HG--
extra : moz-landing-system : lando
2019-06-18 21:32:16 +00:00
Nupur Baghel
f2df452a86 Bug 1529289 - Add web frame and web window types to web webdriver Rust crate. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D22842

--HG--
extra : moz-landing-system : lando
2019-03-09 14:09:48 +00:00
championshuttler
3d0a96e5d2 Bug 1529285 - Rename Cookie::httpOnly to ::http_only. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D21662

--HG--
extra : moz-landing-system : lando
2019-03-09 13:18:30 +00:00
Nupur Baghel
bd0b51c377 Bug 1529291 - Make WebElement a unit struct. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D21917

--HG--
extra : moz-landing-system : lando
2019-03-07 11:47:18 +00:00
championshuttler
c44f408a52 Bug 1529300 - Remove support for legacy {ELEMENT: <UUID>} web element objects. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D21667

--HG--
extra : moz-landing-system : lando
2019-03-02 15:02:44 +00:00
Alexis Beingessner
42eb2a2c50 Bug 1529976 - only parse spec capabilities that are objects. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D21237

--HG--
extra : moz-landing-system : lando
2019-02-26 18:12:05 +00:00
Henrik Skupin
a7f1d64843 Bug 1495062 - [webdriver] Release 0.39.0. r=ato
Depends on D17680

Differential Revision: https://phabricator.services.mozilla.com/D17681

--HG--
extra : moz-landing-system : lando
2019-01-28 15:02:51 +00:00
reimu
2d75585578 Bug 1521444 - Add webdriver unit tests for indefinite script timeout. r=whimboo
Add tests that check serialization and deserialization for indefinite script timeout

Differential Revision: https://phabricator.services.mozilla.com/D17148

--HG--
extra : moz-landing-system : lando
2019-01-28 10:14:52 +00:00
Henrik Skupin
1ac0b76f06 Bug 1507283 - [geckodriver] Relax deserialization of timeouts parameters. r=ato
It fixes the regression from the transition to Serde (bug 1396821),
which accidentally denied unknown fields.

Differential Revision: https://phabricator.services.mozilla.com/D17634

--HG--
extra : moz-landing-system : lando
2019-01-25 19:54:53 +00:00
Csoregi Natalia
c55499a927 Backed out changeset bec3fe861b06 (bug 1507283) for failures on /webdriver/tests/set_timeouts/set.py. CLOSED TREE 2019-01-25 17:25:23 +02:00
Henrik Skupin
7e6a53140b Bug 1507283 - [geckodriver] Relax deserialization of timeouts parameters. r=ato
It fixes the regression from the transition to Serde (bug 1396821),
which accidentally denied unknown fields.

Differential Revision: https://phabricator.services.mozilla.com/D17634

--HG--
extra : moz-landing-system : lando
2019-01-25 14:01:37 +00:00
Henrik Skupin
bc9d3b2007 Bug 1509513 - [webdriver] Add support for the "New Window" command. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D16503

--HG--
extra : moz-landing-system : lando
2019-01-15 16:29:23 +00:00
David Burns
4ba561d5fc Bug 1520137: Update documentation pointing to #interop instead of #ateam r=whimboo
As we move away from #ateam we need to make sure we that we point people to
the correct IRC Channel

Differential Revision: https://phabricator.services.mozilla.com/D16547

--HG--
extra : moz-landing-system : lando
2019-01-15 14:14:10 +00:00
Henrik Skupin
8044935482 Bug 1517196 - [geckodriver] Fix unit test for invalid frame id. r=ato
Depends on D16049

Differential Revision: https://phabricator.services.mozilla.com/D15953

--HG--
extra : moz-landing-system : lando
2019-01-09 16:22:00 +00:00
reimu
d8cfc514e4 Bug 1128997 - Support indefinite script timeout r=ato
Differential Revision: https://phabricator.services.mozilla.com/D13181

--HG--
extra : moz-landing-system : lando
2019-01-06 23:04:41 +00:00
Bastien Orivel
a640e5b81f Bug 1516262 - Part 1: Update base64 and bump webdriver's version; r=ato 2019-01-02 12:13:07 +00:00
Henrik Skupin
ffd608a8a0 Bug 1508670 - [webdriver] Fix Rust code to be compatible with Rust 2018 edition. r=ato
Depends on D13398

Differential Revision: https://phabricator.services.mozilla.com/D13399

--HG--
extra : moz-landing-system : lando
2018-11-30 06:05:15 +00:00
Henrik Skupin
9a86603828 Bug 1508670 - Convert usages of try macro to ? for webdriver and geckodriver. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D13395

--HG--
extra : moz-landing-system : lando
2018-11-29 20:58:36 +00:00
Cameron McCormack
03d6193f4a Bug 1508820 - fix "warning: variant is never constructed: Quit" r=ato
Differential Revision: https://phabricator.services.mozilla.com/D12489

--HG--
extra : moz-landing-system : lando
2018-11-20 23:16:10 +00:00
Andreas Tolfsen
24803f5943 bug 1507428: webdriver: fix incorrect Content-Type header; r=whimboo
The Content-Type header contains the correct MIME type, but the
charset option is "utf8" and invalid: it should be "utf-8".

Differential Revision: https://phabricator.services.mozilla.com/D12116

--HG--
extra : moz-landing-system : lando
2018-11-16 19:17:37 +00:00
Andreas Tolfsen
4a6bb55dbf bug 1502864: webdriver: add strictFileInteractability capability; r=jgraham
Depends on D10272

Depends on D10272

Differential Revision: https://phabricator.services.mozilla.com/D10273

--HG--
extra : moz-landing-system : lando
2018-11-03 16:32:34 +00:00
Ciure Andrei
ea4e67046a Backed out 8 changesets (bug 1502864) for failing test_capabilities.py CLOSED TREE
Backed out changeset 6e4454a6f3ee (bug 1502864)
Backed out changeset 3f7ca511af8c (bug 1502864)
Backed out changeset 9382a6630231 (bug 1502864)
Backed out changeset 1eb51f6b4ba0 (bug 1502864)
Backed out changeset 2fda41394085 (bug 1502864)
Backed out changeset 0b421dd8a7d5 (bug 1502864)
Backed out changeset 9caa2f0e2e38 (bug 1502864)
Backed out changeset 7616e25a07b3 (bug 1502864)
2018-11-02 19:14:52 +02:00
Andreas Tolfsen
fa5f227504 bug 1502864: webdriver: add strictFileInteractability capability; r=jgraham
Depends on D10272

Differential Revision: https://phabricator.services.mozilla.com/D10273

--HG--
extra : moz-landing-system : lando
2018-11-02 14:26:00 +00:00
Andreas Tolfsen
3439836809 bug 1491288: webdriver: release 0.38.0; r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D7300

--HG--
extra : moz-landing-system : lando
2018-10-03 15:00:00 +00:00
Andreas Tolfsen
27cdbdb5f2 bug 1495475: webdriver: warn on using desiredCapabilities/requiredCapabilities r=whimboo
This emits a warning when the webdriver library reverts to using the
legacy Selenium-styled capabilities negotiation for new sessions.
It provides a helpful link which will explain to users how to update.

Differential Revision: https://phabricator.services.mozilla.com/D7305

--HG--
extra : moz-landing-system : lando
2018-10-02 06:50:22 +00:00
Henrik Skupin
164c4189d5 Bug 1494637 - [geckodriver] Only serialize non null arguments for Marionette. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D7210

--HG--
extra : moz-landing-system : lando
2018-09-29 15:34:38 +00:00
Henrik Skupin
421c63d12b Bug 1494617 - [geckodriver] Fix evaluation of "desiredCapabilities" and "requiredCapabilities". r=ato
The refactoring of the webdriver crate to use Serde (bug 1396821)
caused this regression. By instructing Serde to correctly rename
both properties fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D7079

--HG--
extra : moz-landing-system : lando
2018-09-27 12:06:00 +00:00
Kerem Kat
6d86e85fe6 bug 1453292: webdriver, geckodriver: remove elementTap command r=whimboo
Removes the non-standard /session/{session id}/element/{element
id}/tap endpoint command from geckodriver.

Differential Revision: https://phabricator.services.mozilla.com/D6879

--HG--
extra : moz-landing-system : lando
2018-09-26 09:49:03 +00:00
Andreas Tolfsen
e7529b1b4e bug 1492647: webdriver: remove unused travis config; r=whimboo
DONTBUILD
2018-09-21 13:34:56 +01:00
Andreas Tolfsen
20e8887560 bug 1492647: webdriver: remove unused ignore files; r=whimboo
The rules in the .gitignore file are duplicated by the root-level
.gitignore file, and the .hgignore file does not take effect because
hg does not subdirectory ignore files.

DONTBUILD
2018-09-21 13:34:55 +01:00
Henrik Skupin
57497a5de9 Bug 1491751 - [geckodriver] "Pause" action primitive should allow duration to be optional. r=ato
--HG--
extra : rebase_source : 30beb3aa731307fe7ff3e555215343829592f395
2018-09-17 13:32:31 +02:00
Andreas Tolfsen
521392abff bug 1490660: webdriver: release 0.37.0; r=jgraham 2018-09-12 16:12:21 +01:00
Andreas Tolfsen
7938992cbc bug 1490660: webdriver: correct README; r=jgraham
The usage example is out of date, and the URLs for the mailing list
archive and the WebDriver specification were wrong.
2018-09-12 16:12:20 +01:00