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

27 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin c1a287281d Bug 1420577 - Improve failure messages for invalid proxy configurations. r=ato
MozReview-Commit-ID: 4HitwxCUQH

--HG--
extra : rebase_source : 2315818aaef45ab1fce63cf7dfdf0533a0cd0c70
2017-12-04 23:32:44 +01:00
Henrik Skupin 7479ef0258 Bug 1321516 - Switch to WebDriver conformant interactability checks. r=ato
This change will cause Marionette to use the webdriver conformant
clickElement method instead of the legacy one by default. It means
that additional checks will be performed to ensure that the element
to click onto is visible, and not obscured by other elements. Also
it will be scrolled into view in case it is located outside of the
current view port.

Even it is used by default, the behavior can be controlled with the
"moz:webdriverClick" capability. Setting to to 'false' when creating
a new session, will cause a fallback to legacy clickElement.

MozReview-Commit-ID: E560k62Q2J9

--HG--
extra : rebase_source : 1d4d120822c6ae13a319c6c5d33e5b77b86cfdb6
2017-11-01 22:18:39 +01:00
Henrik Skupin aae9a4d88d Bug 1406763 - Strip brackets around IPv6 addresses for proxy hosts. r=ato
The WebDriver specification requires IPv6 addresses to be always added
with brackets for proxy hosts. But Firefox itself handles those without
brackets for both the proxy host, and the noProxy settings.

MozReview-Commit-ID: 9vpvXjDDuxd

--HG--
extra : rebase_source : f087d39e04738fff93f08fdd26d676b2daf623da
2017-10-09 14:10:03 +02:00
Sebastian Hengst 1237c730d7 Backed out changeset 0ce17eb985f1 (bug 1406763) 2017-10-12 20:51:38 +02:00
Henrik Skupin b16adff69a Bug 1406763 - Strip brackets around IPv6 addresses for proxy hosts. r=ato
The WebDriver specification requires IPv6 addresses to be always added
with brackets for proxy hosts. But Firefox itself handles those without
brackets for both the proxy host, and the noProxy settings.

MozReview-Commit-ID: 9vpvXjDDuxd

--HG--
extra : rebase_source : 0fa109cd8993df980e28c57a7ec3857e9e2ff932
2017-10-09 14:10:03 +02:00
Andreas Tolfsen d28ce13224 Bug 1405279 - Remove unused variables. r=whimboo
MozReview-Commit-ID: CmiDVCw6xVK

--HG--
extra : rebase_source : e71cfb7da973d95c796a93cc1e4da6f709acf65e
2017-10-03 14:35:47 +01:00
Henrik Skupin 03ba8ad526 Bug 1397306 - Empty noProxy list should reset no proxy exclusions. r=ato
To allow resetting the default no proxy exclusion entries in
Firefox tests have to pass an empty noProxy list. This should
also be correctly applied.

MozReview-Commit-ID: ABmYdPvoSvx

--HG--
extra : rebase_source : 313fe0a918a4a9bfe5204e5777568ee5f89744d3
2017-09-07 10:21:36 +02:00
Henrik Skupin 269febe5eb Bug 1387470 - Use moz:webdriverClick capability for spec conforming element click. r=ato
To allow geckodriver to temporarily opt-in for using the webdriver
conforming click, a new custom capability has to be created for
Marionette. If not specified the legacy clickElement method will
be used instead.

MozReview-Commit-ID: LuyTjLJXMGL

--HG--
extra : rebase_source : 8e133fb2d9767ea580468013fedff5233fd8eb93
2017-09-01 17:11:35 +02:00
Henrik Skupin 476c801003 Bug 1387094 - Add noProxy support for manual proxy type. r=ato
MozReview-Commit-ID: 1C9sFgrno4i

--HG--
extra : rebase_source : 4182535b4dc5660966856adc250e38c08e009623
2017-08-31 17:49:36 +02:00
Henrik Skupin 636959a3aa Bug 1369827 - Fix socksVersion key in proxy capabilities. r=ato
In the spec the socksProxyVersion key has been renamed to
socksVersion. Marionette has to be adjusted for this change.

MozReview-Commit-ID: Ep3zNZLKxXl

--HG--
extra : rebase_source : f29f45c9d30fa5f208b595f2e90f544ab652c8cc
2017-08-23 11:47:01 +02:00
Henrik Skupin 8c9c9c7b11 Bug 1369827 - Make proxy port an optional suffix for the host. r=ato
The WebDriver spec has been changed a while ago in regard of how
proxy capabilities are getting specified. It means that the port
is no longer its own key but an optional suffix for each of the
ftpProxy, httpProxy, sslProxy, and socksProxy keys.

MozReview-Commit-ID: zdYnVZSf09

--HG--
extra : rebase_source : c4928e6170b52a0ee247f50861646ec29a56bd34
2017-08-18 14:49:00 +02:00
Henrik Skupin f5ae03f271 Bug 1391016 - "proxyAutoconfigUrl" is required for proxyType "pac". r=automatedtester
MozReview-Commit-ID: DC43PmCAWBn

--HG--
extra : rebase_source : 910653f16a44f934dddbb9a00d1d66bf496ee1fe
2017-08-16 21:58:55 +02:00
Henrik Skupin 1342b7079f Bug 1391016 - Make sure that proxyType is required and a string. r=automatedtester
The webdriver spec declares the "proxyType" as required, and of
type string.

MozReview-Commit-ID: FXUhdYfOwWI

--HG--
extra : rebase_source : dc069a4de1e014951ed430bf5448ca0e3ac2545e
2017-08-16 21:45:09 +02:00
Henrik Skupin 654b88a12d Bug 1387092 - Add support for proxyType "direct". r=ato
The webdriver spec has been updated a while ago and renamed the proxyType
for not using a proxy from "noProxy" to "direct".

MozReview-Commit-ID: FjDIK8XCba8

--HG--
extra : rebase_source : 423149d3f82cf1b7e28d29a775359ac66e7a6f90
2017-08-15 19:23:33 +02:00
Sebastian Hengst b07f79e076 Backed out changeset 30805fec70ed (bug 1387092) for failing testing/marionette/test_session.js | test_Proxy_init. r=backout 2017-08-15 19:08:53 +02:00
Henrik Skupin 57339723eb Bug 1387092 - Add support for proxyType "direct". r=ato
The webdriver spec has been updated a while ago and renamed the proxyType
for not using a proxy from "noProxy" to "direct".

MozReview-Commit-ID: FjDIK8XCba8

--HG--
extra : rebase_source : ab41d737c9ba06c8883bfd36839807e6c3316c92
2017-08-11 11:55:51 +02:00
Andreas Tolfsen a791c795cb Bug 1387380 - Stop capabilities negotiation in Marionette. r=whimboo
The geckodriver HTTPD proxy implements WebDriver conforming capabilities
negotation and it is unnecessary to do this in the Marionette WebDriver
service.  The capabilities matching that Marionette implements is also
not as good as the implementation found in geckodriver.

The WebDriver:NewSession command will still accept a JSON Object of
"configuration" capabilities that carry the pre-matched capabilities from
geckodriver.  These will be used as configuration options for the session.
Type- and bounds checks will still be performed on this input.

MozReview-Commit-ID: CROjgGuTXOG

--HG--
extra : rebase_source : eb7e9f69fe3b23b77ea497d758fe30ac93d6373c
2017-08-04 20:04:12 +01:00
Brendan Dahl 465c6d492e Bug 1355147 - Fix test moving to negative coordinates in headless mac. r=whimboo
Expose if the browser is headless to marionette session capabilities
so the tests can check headless behavior.

MozReview-Commit-ID: 10va2Iv2ytO
2017-07-28 11:00:28 -07:00
Andreas Tolfsen dd7a57fd22 Bug 1384517 - Fix testing/marionette API docs; r=automatedtester
Various fixes to make the generated API documentation from
testing/marionette somewhat easier to read.

MozReview-Commit-ID: F9duuQoOYBt

--HG--
extra : rebase_source : 3ade69773ceba42826aedef05b1371240b51cf82
2017-07-26 13:11:53 +01:00
Andreas Tolfsen de001d80b7 Bug 1376128 - Lint testing/marionette; r=automatedtester
MozReview-Commit-ID: DY4yCSBEZrN

--HG--
extra : rebase_source : d4e25369418cc72a6ee9f78d44b050a87403391d
2017-06-29 16:40:24 -07:00
Andreas Tolfsen 54c2f296a7 Bug 1376128 - Use selective imports from error module; r=automatedtester
Instead of importing everything from the testing/marionette/error.js
module into the global scope, we need to be selective about what symbols
we want.

MozReview-Commit-ID: HZDAS0bs0GD

--HG--
extra : rebase_source : 14a300bb2cedc0716168d50846755a6faed83012
2017-06-28 11:01:49 -07:00
Henrik Skupin cfdbf9979c Bug 937659 - Fix deserializing of page load strategy. r=ato
The patch aligns the steps for deserializing the page load strategy with
the webdriver specification.

MozReview-Commit-ID: GnVTnhVQVkG

--HG--
extra : rebase_source : c7796817fa6d0397b4821445dc3bd87853e0e509
2017-04-19 12:32:20 +02:00
Andreas Tolfsen aa02b52d5f Bug 1355471 - Test timeout field before value's typing; r=whimboo
The error message returned when unmarshalling the timeout configuration
object with invalid input is misleading, because it checks the typing
of the value before the field name.

This patch changes Marionette to run the type assertion for the value
after each case in the switch statement has been evaluated, ensuring
that the field is valid before asserting its value.

It also adds a few unit tests to verify this behaviour.

Fixes: https://github.com/mozilla/geckodriver/issues/633
MozReview-Commit-ID: LVjTyUacD0s

--HG--
extra : rebase_source : f8a215aedfa5edf8ddbd037cae583ec07626de27
2017-04-11 14:57:01 +01:00
Andreas Tolfsen 94a0c13a31 Bug 1342162 - Align pageLoad key with WebDriver; r=maja_zf
The WebDriver specification recently decided to use "pageLoad" instead of
"page load" to identify the page load duration timeout in the session
timeouts configuration object:

	https://github.com/w3c/webdriver/pull/796

This change aligns Marionette with WebDriver, and as long as this patch
is uplifted to Aurora (53) and Beta (52) in reasonable time, we should be
able to avoid the backwards compatibility dance with the Python client
(for upgrade tests) because the original change to the data format
landed on the current Firefox version:

	https://bugzilla.mozilla.org/show_bug.cgi?id=1316622

MozReview-Commit-ID: BzQeJku4AFS

--HG--
extra : rebase_source : 61b4450ef610cb36e6ed585ee6b20807b51f23be
2017-02-23 18:33:26 +00:00
Ryan VanderMeulen 5986e8f74a Backed out changeset 01bc4c9ad3b5 (bug 1342162) for breaking update tests. 2017-03-01 12:19:19 -05:00
Andreas Tolfsen 9d62e57333 Bug 1342162 - Align pageLoad key with WebDriver; r=maja_zf
The WebDriver specification recently decided to use "pageLoad" instead of
"page load" to identify the page load duration timeout in the session
timeouts configuration object:

	https://github.com/w3c/webdriver/pull/796

This change aligns Marionette with WebDriver, and as long as this patch
is uplifted to Aurora (53) and Beta (52) in reasonable time, we should be
able to avoid the backwards compatibility dance with the Python client
(for upgrade tests) because the original change to the data format
landed on the current Firefox version:

	https://bugzilla.mozilla.org/show_bug.cgi?id=1316622

MozReview-Commit-ID: BzQeJku4AFS

--HG--
extra : rebase_source : 0ed8e423b8c467ae30f0d36e7b10d46a2b842439
2017-02-23 18:33:26 +00:00
Andreas Tolfsen c276b917c4 Bug 1326534 - Rewrite capabilities parsing in Marionette; r=automatedtester
This patch provides a (nearly) WebDriver conforming implementation
of capabilities in Marionette.  The work remaining is pending further
clarification in the specification.

Capabilities are represented internally as a complex object provided
by `session.Capabilities`.  Timeouts and proxy configuration are also
represented by the similar complex objects `session.Timeouts` and
`session.Proxy`, respectively.

The capabilities stored in `GeckoDriver#sessionCapabilities` are the
result of parsing user-provided desired- and required capabilities.
WebDriver now uses `firstMatch` and `alwaysMatch` primitives for
capabilities, but as this is considered a wider breaking change, the
move to these primitives will be done at a later stage.  It’s prudent
to point out that the base techniques used with the new primitives
are similar to those implemented for `desiredCapabilities` and
`requiredCapabilities` in this patch, and that the work needed to adapt
them is considered trivial.

When capabilities are presented back to the user (the so called processed
capabilities), we call the `toJSON` implementation on the complex objects.
`session.Capabilities#toJSON` calls the internal function `marshal`
which ensures empty fields are dropped.  `marshal` can be considered to
be a specialisation of the standard library `JSON.stringify`, which also
calls `toJSON` on entry values if they provide this function.

The changeset overall also provides a much deeper level of testing of
WebDriver capabilities.

MozReview-Commit-ID: 97xGt3cnMys

--HG--
extra : rebase_source : 98e0bde3fdfd811775d195b488cb1255f61e5772
2016-12-31 12:21:34 +00:00