Commit Graph
421 Commits
Author SHA1 Message Date
Henrik Skupin 136e7bc0dd Bug 1404891 - Add noProxy documentation for proxy capabilities. r=ato
We missed adding it for the implementation on bug 1387094.

DONTBUILD

MozReview-Commit-ID: E717NEO7o2U
2017-10-02 23:16:07 +02:00
Henrik Skupin aa573ef618 Bug 1403503 - Remove obsolete socksUsername and socksPassword capabilities. r=automatedtester
MozReview-Commit-ID: bHqc96uzsm
2017-09-28 09:28:13 +02:00
Ian MacLeod 9500ec1d4f Bug 1368034 - Update default values for urlbar searches in Marionette r=whimboo
Search suggestions create unneccessary network requests and the suggestions
opt-in notification interferes with tests that don't expect it to be there.
So, this patch updates the default settings in Marionette to disable both.

MozReview-Commit-ID: 8X8SYPq19tj
2017-09-25 02:10:47 -07:00
Andreas Tolfsen ef98a177ff Bug 1400289 - Add geckodriver release instructions. r=automatedtester
This is a liberal port of the old geckodriver release instructions
that are on the GitHub wiki:

	https://github.com/mozilla/geckodriver/wiki/Releasing

Because the project's canonical home has moved to mozilla-central,
it is better to keep all documentation in one place.  Documentation
close to the source code is the best.

I have improved the release instructions in a number of ways, in
particular by describing how to make a release to GitHub/Travis from
mozilla-central.

DONTBUILD

MozReview-Commit-ID: 6f87DLDM59E
2017-09-16 11:12:19 +01:00
Andreas Tolfsen 80af36676e Bug 1391605 - Correct webdriver create version number in 0.19.0 release. r=me
MozReview-Commit-ID: J4TrdQIiJVg
2017-09-16 15:15:03 +01:00
Andreas Tolfsen e491a11ac4 Bug 1391605 - Release webdriver 0.31.0. r=me
MozReview-Commit-ID: O3cTr5t58F
2017-09-16 15:13:50 +01:00
Sebastian Hengst b92125bab0 Backed out changeset ce0bfafc57be (bug 1391605) 2017-09-16 14:22:15 +02:00
Andreas Tolfsen e6f35073f8 Bug 1391605 - Correct webdriver create version number in 0.19.0 release. r=me
MozReview-Commit-ID: J4TrdQIiJVg
2017-09-16 12:55:06 +01:00
Henrik Skupin b2664e8ebc Bug 1391605 - Bump geckodriver to 0.19.0. r=ato
MozReview-Commit-ID: 4ai3ShcNhdS
2017-09-14 18:08:28 +02:00
Henrik Skupin b7f8c99e6e Bug 1391605 - Update CHANGES.md for changes in geckodriver 0.19.0. r=ato
MozReview-Commit-ID: D1AAN8iWsuP
2017-09-14 18:06:43 +02:00
Henrik Skupin 0b02cda21a Bug 1399628 - Disable Shield extension in Marionette and geckodriver. r=ato
Shield experiments interfer with core features of Firefox which can
cause tests run via Marionette or geckodriver to fail. Resetting the
API URL will make sure that no experiments can be downloaded.

MozReview-Commit-ID: HnE49jfnen7
2017-09-14 21:03:40 +02:00
Sebastian Hengst aad205439d Backed out changeset 3baecf7b25f2 (bug 1399628) for build bustage. r=backout 2017-09-15 14:36:12 +02:00
Henrik Skupin 1cb63c5836 Bug 1399628 - Disable Shield extension in Marionette and geckodriver. r=ato
Shield experiments interfer with core features of Firefox which can
cause tests run via Marionette or geckodriver to fail. Resetting the
API URL will make sure that no experiments can be downloaded.

MozReview-Commit-ID: HnE49jfnen7
2017-09-14 21:03:40 +02:00
Henrik Skupin 3807d27dbe Bug 1398057 - Not all command arguments are printed to the log. r=jgraham
By logging the used browser arguments from geckodriver only the
-marionette argument ends up in the log. Instead mozrunner should
be used which knows about any of them.

MozReview-Commit-ID: J9px0pWSwQm
2017-09-13 09:15:42 +02:00
Andreas Tolfsen e56bc1f9b8 Bug 1398493 - Recommend Selenium 3.5 for geckodriver. r=automatedtester
Addresses code review comment.

DONTBUILD

MozReview-Commit-ID: 5CQw4SDos0e
2017-09-12 19:06:27 +01:00
Andreas Tolfsen 6841e6db28 Bug 1398493 - Improve testing/geckodriver Markdown docs. r=automatedtester
This change, though unstubstantial, will make the Markdown documents
under testing/geckodriver more readable in text editors.

DONTBUILD

MozReview-Commit-ID: 21yQUExNJhU
2017-09-09 16:50:57 +01:00
Andreas Tolfsen 8e2c900a36 Bug 1396866 - Relax WindowRectResponse typing. r=jgraham
The WindowProxy screenX/screenY/outerWidth/outerHeight fields are
platform-independent longs, meaning the bitness of the system is not
taken into account.  This is defined in WebIDL as "a signed integer type
that has values in the range [−2147483648, 2147483647]".  This can be
represented with an i32 internally.

Additionally, the WebDriver specification says that we should accept
JSON Numbers as input.  This means the input value can be either a float
or an integer.  rustc_serialize handles this very badly and we first
need to extract the input as f64 because this is the most liberal type
(i.e. an integer can be coerced to a float without problem).

We then we cast the number to an i64 which trims off any decimals without
worrying that the number wraps.  We then run bounds checks of an i32
and error if the number will not fit within the set range.

This patch expects the output from Marionette to be conforming.

MozReview-Commit-ID: CVdUZWh2t8X
2017-09-09 12:21:50 +01:00
Henrik Skupin 8ebccb1d4a Bug 1388251 - Updated geckodriver changelog for process handling changes. r=jgraham
MozReview-Commit-ID: 8l18q0SgjJH
2017-09-12 19:15:50 +02:00
Henrik Skupin 54599d2c3a Bug 1388251 - Cancel connection attempts if process is not running. r=jgraham
If the browser process is not running it doesn't make sense to try to
connect to it for another 60s. Instead error out immediately.

MozReview-Commit-ID: 64DTZfEfzQj
2017-08-31 15:43:20 +02:00
Henrik Skupin 62339c3c51 Bug 1388251 - Bump mozrunner crate to version 0.5.0. r=jgraham
MozReview-Commit-ID: IhMuuz7EWv3
2017-09-11 20:43:43 +02:00
Andreas Tolfsen bdf3fd61d3 Bug 1398450 - Fix prefs test regression. r=jgraham
The marionette.defaultPrefs.port preference was changed to
marionette.port, but because we currently do not run tests in CI we
missed updating the test.

MozReview-Commit-ID: LKstRYmJcMO
2017-09-09 16:58:54 +01:00
Henrik Skupin b993a892f8 Bug 1387470 - Allow geckodriver to use the webdriver conforming click. r=ato
To allow the selection of the new webdriver spec conforming
"clickElement" method over the old legacy Selenium one, the
"moz:webdriverClick" capability can be used. Setting it's value
to true will enable the conforming click.

MozReview-Commit-ID: HMvFFEJDvpG
2017-09-01 17:21:50 +02:00
Andreas Tolfsen 05f390ebc3 Bug 1396838 - Drop WindowState. r=jgraham
The window state concept was removed from WebDriver level 1.

MozReview-Commit-ID: 6cogstpDc0a
2017-09-05 14:50:06 +01:00
Andreas Tolfsen 1821c0cb8f Bug 1368265 - Remove unnecessary license files. r=automatedtester
Since both these Rust programs are hosted in mozilla-central,
they are governed by the top-level LICENSE file.  See also
toolkit/content/license.html.

MozReview-Commit-ID: 4C0fEAeJZ6h
2017-09-03 17:17:13 +01:00
Andreas Tolfsen 6da43632a7 Bug 1368265 - Update geckodriver and webdriver Cargo.tomls. r=automatedtester
MozReview-Commit-ID: 6MsrxinrYEp
2017-09-03 16:24:55 +01:00
Andreas Tolfsen 71231b1558 Bug 1368265 - Use in-tree testing/webdriver. r=automatedtester
MozReview-Commit-ID: R74BGZOBBx
2017-09-03 16:15:48 +01:00
Henrik Skupin fc0e217a13 Bug 1369827 - Update geckodriver docs for proxy port changes. r=ato
MozReview-Commit-ID: 4yBC9AAHU5X
2017-08-18 14:55:07 +02:00
Henrik Skupin a7d5e1e1f5 Bug 1369827 - Upgrade webdriver crate to 0.30. r=ato
MozReview-Commit-ID: GRWyIULr0ly
2017-08-15 12:32:06 +02:00
Henrik Skupin 05f0fb0fd8 Bug 1388249 - Add crashreporter environment variables to geckodriver. r=jgraham
In geckodriver we need a better control about the behavior of the
crash reporter. It should be enabled by default if possible, but
never show its window when a crash actually happens. Both settings
will allow us later to analyze the generated minidump files.

Further the crash reporter will shutdown Firefox now in case of
content crashes. This prevents a possible hang of Marionette
when a command in content gets executed and the framescript
gets disconnected.

MozReview-Commit-ID: DV1E7yQlElM
2017-08-23 13:33:12 +02:00
Henrik Skupin 6624822406 Bug 1388249 - Upgrade to mozrunner 0.4.2. r=jgraham
MozReview-Commit-ID: 5cexJ4uJnB1
2017-08-23 12:25:03 +02:00
Francois Marier e1e98ed348 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT
2017-08-22 17:56:20 -07:00
Francois Marier 2e2b6b9efa Bug 1385484 - Remove obsolete prefs and add missing blockedURIs. r=hchang
This should have been done when blockedURIs was added (bug 1237198),
when safebrowsing.enabled was renamed (bug 1025965), and when the
forbidden list format was removed (bug 1274893).

MozReview-Commit-ID: AUWR5Efcb2x
2017-08-22 17:55:28 -07:00
Wes Kocher ee18e318e9 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ
2017-08-22 17:22:41 -07:00
Francois Marier 3c3460e995 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT
2017-08-08 16:25:12 -07:00
Francois Marier c8fa594d36 Bug 1385484 - Remove obsolete prefs and add missing blockedURIs. r=hchang
This should have been done when blockedURIs was added (bug 1237198),
when safebrowsing.enabled was renamed (bug 1025965), and when the
forbidden list format was removed (bug 1274893).

MozReview-Commit-ID: AUWR5Efcb2x
2017-08-22 16:00:50 -07:00
Andreas Tolfsen 1b7bb110fb Bug 1388036 - Map WebDriverCommand::FullscreenWindow correctly. r=automatedtester
The WebDriverCommand::FullscreenWindow command maps to an unknown
Marionette command "fullscreenWindow".  The correct command is
"fullscreen".

MozReview-Commit-ID: 4th2TYcIbP2
2017-08-07 13:58:28 +01:00
Henrik Skupin 67513d9a94 Bug 1387403 - Force quitting the browser if no session can be established. r=jgraham
In case the NewSession command fails due to errors returned
by Marionette, the browser has to be killed. This is necessary
because DeleteSession always requires an existent session, and
would fail in closing the browser. So the process would continue
to be alive.

MozReview-Commit-ID: 1llX4lPNYjN
2017-08-17 14:05:11 +02:00
Henrik Skupin d1086ce831 Bug 1387092 - Update geckodriver readme for proxyType 'direct'. r=ato
MozReview-Commit-ID: DKttdSJajcD
2017-08-15 19:28:53 +02:00
Sebastian Hengst 45e0df67e9 Backed out changeset 32d34008eec5 (bug 1387092) 2017-08-15 19:07:57 +02:00
Henrik Skupin 1930a71b32 Bug 1390486 - Add "dom.file.createInChild" preference to recommended prefs. r=ato
To allow geckodriver to create file objects in child processes, this
preference has to be set to true. As such it needs to be recommended
in Marionette and set as default preference for geckodriver.

MozReview-Commit-ID: 8bdbi5jH6Vc
2017-08-15 17:47:15 +02:00
Henrik Skupin 1418f165a2 Bug 1387092 - Update geckodriver readme for proxyType 'direct'. r=ato
MozReview-Commit-ID: DKttdSJajcD
2017-08-11 18:58:18 +02:00
Sebastian Hengst c5c6ea74cc merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mN7ThnGN3X
2017-08-10 17:20:12 +02:00
Sebastian Hengst 06c0230a2f Backed out changeset 85b4584e1a83 (bug 1384969) for dropping debug and trace output from Marionette. r=backout a=backout
MozReview-Commit-ID: Bc8BwL6aatK
2017-08-10 11:45:36 +02:00
Andreas Tolfsen 602d703d03 Bug 1388365 - Vendor webdriver 0.29.0. r=whimboo
MozReview-Commit-ID: 3vhk9kfmDHD
2017-08-08 15:10:55 +01:00
Andreas Tolfsen e5d877847d Bug 1388365 - Upgrade to webdriver 0.29.0. r=whimboo
Upgrades the webdriver crate dependency to 0.29.0, which contains some
backwards incompatible changes for RectResponse.  This type has been
split in two, WindowRectResponse and ElementRectResponse.

The former type contains a new "state" field which is already implemented
by Marionette.  Because geckodriver is used with a range of earlier
Firefoxen, it defaults to "normal" window state if the field is not
returned from Marionette.  This is acceptable.

MozReview-Commit-ID: FRxppRVmiZl
2017-08-08 15:09:45 +01:00
Andreas Tolfsen 35421b78bf Bug 1388072 - Drop Marionette fallback prefs from geckodriver. r=automatedtester
The marionette.defaultPrefs.port and marionette.logging preferences were
removed in https://bugzil.la/1344748, which shipped in Firefox 54.
Because the next version of geckodriver (0.19.0) will only support
Firefox 55 and greater, it is safe to remove the fallbacks.

MozReview-Commit-ID: 4fhtoRasqyB
2017-08-07 16:13:54 +01:00
Andreas Tolfsen 6c479cc63b Bug 1387552 - Document pageLoadStrategy in geckodriver README. r=automatedtester
MozReview-Commit-ID: 7oR84Hm9njP
2017-08-04 20:40:58 +01:00
Andreas Tolfsen ec7adf3417 Bug 1387552 - Order capabilities lexicographically. r=automatedtester
MozReview-Commit-ID: GBvz053VdEm
2017-08-04 20:36:24 +01:00
Valentin Gosu bca4013ce3 Bug 1383831 - Upgrade rust-url to version 1.5.1 r=froydnj
MozReview-Commit-ID: L3j6K5dDWHi
2017-08-02 13:44:48 +03:00
Yangyi Peng db192e120d Bug 1380936 - Add Minimize Window command to geckodriver; r=ato
MozReview-Commit-ID: Le6rAUMDjwe
2017-08-01 11:42:58 +08:00