Commit Graph

421 Commits

Author SHA1 Message Date
Henrik Skupin
89dbeb8d8c 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

--HG--
extra : rebase_source : facb28d006e514bff6796f8c0e085c73f313d0ce
2017-10-02 23:16:07 +02:00
Henrik Skupin
884db29fa1 Bug 1403503 - Remove obsolete socksUsername and socksPassword capabilities. r=automatedtester
MozReview-Commit-ID: bHqc96uzsm

--HG--
extra : rebase_source : 633bcc11d85addf837abca71120959b4b5f6aeb5
2017-09-28 09:28:13 +02:00
Ian MacLeod
596a2c319b 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

--HG--
extra : rebase_source : cd0fe8f3437340b1266d161e1cad46bcbcd1a6f6
2017-09-25 02:10:47 -07:00
Andreas Tolfsen
681078e51b 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

--HG--
extra : rebase_source : c144ac8ee2486a38d7eb26c91276e841be50fc81
2017-09-16 11:12:19 +01:00
Andreas Tolfsen
2d18e3fcce 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
1c41d7c2a0 Bug 1391605 - Release webdriver 0.31.0. r=me
MozReview-Commit-ID: O3cTr5t58F
2017-09-16 15:13:50 +01:00
Sebastian Hengst
673852426e Backed out changeset ce0bfafc57be (bug 1391605) 2017-09-16 14:22:15 +02:00
Andreas Tolfsen
9c08aa7374 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
d361d3aadb Bug 1391605 - Bump geckodriver to 0.19.0. r=ato
MozReview-Commit-ID: 4ai3ShcNhdS

--HG--
extra : rebase_source : bd255ed9864e484cb3ac395d999d5d5ac6c44425
2017-09-14 18:08:28 +02:00
Henrik Skupin
9c4f466023 Bug 1391605 - Update CHANGES.md for changes in geckodriver 0.19.0. r=ato
MozReview-Commit-ID: D1AAN8iWsuP

--HG--
extra : rebase_source : d7378190f1c9a6b0568676f200836a9d15a37712
2017-09-14 18:06:43 +02:00
Henrik Skupin
890c883dee 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

--HG--
extra : rebase_source : 2fa6cf86ddce798eba88a41d227768f149cccc70
2017-09-14 21:03:40 +02:00
Sebastian Hengst
80dfe00824 Backed out changeset 3baecf7b25f2 (bug 1399628) for build bustage. r=backout 2017-09-15 14:36:12 +02:00
Henrik Skupin
b2ac5a3fe1 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

--HG--
extra : rebase_source : 9cec29085032318e9e8467d6d754afe0890ae645
2017-09-14 21:03:40 +02:00
Henrik Skupin
43678cf327 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

--HG--
extra : rebase_source : 36730f7c2ecffa7a28dda3d16404f523bd075d35
2017-09-13 09:15:42 +02:00
Andreas Tolfsen
9342f618fd Bug 1398493 - Recommend Selenium 3.5 for geckodriver. r=automatedtester
Addresses code review comment.

DONTBUILD

MozReview-Commit-ID: 5CQw4SDos0e

--HG--
extra : rebase_source : 80c522a685874c752af1235674c11ef1f7365954
2017-09-12 19:06:27 +01:00
Andreas Tolfsen
6908673c47 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

--HG--
extra : rebase_source : cb51d1a0ce93c561c79fabb941b56192ec711480
2017-09-09 16:50:57 +01:00
Andreas Tolfsen
7050aaf58b 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

--HG--
extra : rebase_source : 6780985703d5d5291eae508f9eb2fdec16c261cc
2017-09-09 12:21:50 +01:00
Henrik Skupin
c7eb7901af Bug 1388251 - Updated geckodriver changelog for process handling changes. r=jgraham
MozReview-Commit-ID: 8l18q0SgjJH

--HG--
extra : rebase_source : ddf18a2c75151a5d99419b214c67bd56467a2f6f
2017-09-12 19:15:50 +02:00
Henrik Skupin
34568cd204 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

--HG--
extra : rebase_source : 9951b1a64cbd8b387c2bc5e1152de0a975dbbe77
2017-08-31 15:43:20 +02:00
Henrik Skupin
71551dcd13 Bug 1388251 - Bump mozrunner crate to version 0.5.0. r=jgraham
MozReview-Commit-ID: IhMuuz7EWv3

--HG--
extra : rebase_source : 0fef4fa63e5b808b9b163f04f3f79c1cfe68dbda
2017-09-11 20:43:43 +02:00
Andreas Tolfsen
f38299c32f 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

--HG--
extra : rebase_source : 1633b5b82c3c8725ff66423119d7c476fa942b01
2017-09-09 16:58:54 +01:00
Henrik Skupin
a5a02051cd 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

--HG--
extra : rebase_source : 34bb71f7d64d08968cd6b52760cf4d36a61cb29d
2017-09-01 17:21:50 +02:00
Andreas Tolfsen
5a76982786 Bug 1396838 - Drop WindowState. r=jgraham
The window state concept was removed from WebDriver level 1.

MozReview-Commit-ID: 6cogstpDc0a

--HG--
extra : rebase_source : 539df9fed0761b8e9609f60c3f9b77b946829147
2017-09-05 14:50:06 +01:00
Andreas Tolfsen
f5e4748beb 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

--HG--
extra : rebase_source : f8beebd578cd816d974cc9416c6bdb1bdfa37b12
2017-09-03 17:17:13 +01:00
Andreas Tolfsen
c722f88ac8 Bug 1368265 - Update geckodriver and webdriver Cargo.tomls. r=automatedtester
MozReview-Commit-ID: 6MsrxinrYEp

--HG--
extra : rebase_source : c0f5b076183c53c86aae0e757b6ef391f1eba8c1
2017-09-03 16:24:55 +01:00
Andreas Tolfsen
8e1b5b4d8b Bug 1368265 - Use in-tree testing/webdriver. r=automatedtester
MozReview-Commit-ID: R74BGZOBBx

--HG--
extra : rebase_source : 263d5cdf7317bdea6b4bcf3d2b7256429da9d4cf
2017-09-03 16:15:48 +01:00
Henrik Skupin
72d69597a2 Bug 1369827 - Update geckodriver docs for proxy port changes. r=ato
MozReview-Commit-ID: 4yBC9AAHU5X

--HG--
extra : rebase_source : b13451573091fb731ee31b928a3d79a5b7361d0f
2017-08-18 14:55:07 +02:00
Henrik Skupin
700634d241 Bug 1369827 - Upgrade webdriver crate to 0.30. r=ato
MozReview-Commit-ID: GRWyIULr0ly

--HG--
extra : rebase_source : 9661736af2db4f6655cd43a36e45b8caf09a32ef
2017-08-15 12:32:06 +02:00
Henrik Skupin
c7e59bd618 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

--HG--
extra : rebase_source : 6273a2f45fbe5f1b21c099ed8efcea44d72ec8e3
2017-08-23 13:33:12 +02:00
Henrik Skupin
2c0bc01a9a Bug 1388249 - Upgrade to mozrunner 0.4.2. r=jgraham
MozReview-Commit-ID: 5cexJ4uJnB1

--HG--
extra : rebase_source : b643bb0fa203bee5bda765fea62f515a139a55d5
2017-08-23 12:25:03 +02:00
Francois Marier
95ce2d4568 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

--HG--
extra : rebase_source : ae06a028c71eee323307ecd4e62bbf1e8a14fe13
2017-08-22 17:56:20 -07:00
Francois Marier
5139582bc4 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

--HG--
extra : rebase_source : 990bbd4ba7a6daaa08928a697e72f2d6b5b39a5a
2017-08-22 17:55:28 -07:00
Wes Kocher
207dd28c61 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

--HG--
extra : rebase_source : ebab6135905e972abf7eeab9af8db41454687373
2017-08-22 17:22:41 -07:00
Francois Marier
7975ef15d4 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

--HG--
extra : rebase_source : c9a641e4bf49c48bf864ed546bf2ae6eb51c27e4
2017-08-08 16:25:12 -07:00
Francois Marier
4a7299c438 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

--HG--
extra : rebase_source : 533b2e2296d1fe70d6c334bb1766ca26679d224f
2017-08-22 16:00:50 -07:00
Andreas Tolfsen
60d169f368 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

--HG--
extra : rebase_source : 2fcd79984a31962aa18bb10b15a487907707fe8f
2017-08-07 13:58:28 +01:00
Henrik Skupin
f7fd4a1cd9 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

--HG--
extra : rebase_source : 0da6529e2c09358c83760fc66c997db09665e304
2017-08-17 14:05:11 +02:00
Henrik Skupin
3b841dfe1d Bug 1387092 - Update geckodriver readme for proxyType 'direct'. r=ato
MozReview-Commit-ID: DKttdSJajcD

--HG--
extra : rebase_source : 3e47333f6fa196698b8cf77e1e64a0ff1e233070
2017-08-15 19:28:53 +02:00
Sebastian Hengst
e95354daa8 Backed out changeset 32d34008eec5 (bug 1387092) 2017-08-15 19:07:57 +02:00
Henrik Skupin
e33bba5063 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

--HG--
extra : rebase_source : cc8963d2b15357b6d1607854e978aa764fcbd42f
2017-08-15 17:47:15 +02:00
Henrik Skupin
f0d69131d1 Bug 1387092 - Update geckodriver readme for proxyType 'direct'. r=ato
MozReview-Commit-ID: DKttdSJajcD

--HG--
extra : rebase_source : 9ab4f76b2ac59d9c07d3dded9c47eda5a9f72310
2017-08-11 18:58:18 +02:00
Sebastian Hengst
4b79f3b23a merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mN7ThnGN3X
2017-08-10 17:20:12 +02:00
Sebastian Hengst
01f51a3571 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
8104c26b91 Bug 1388365 - Vendor webdriver 0.29.0. r=whimboo
MozReview-Commit-ID: 3vhk9kfmDHD

--HG--
extra : rebase_source : 393c3ff983444bc8639d3ed94edce0b27dabe522
2017-08-08 15:10:55 +01:00
Andreas Tolfsen
a68cdde16c 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

--HG--
extra : rebase_source : 4a86659f337598bb4f5623c51f5df288c8a5dd69
2017-08-08 15:09:45 +01:00
Andreas Tolfsen
5f75a47a96 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

--HG--
extra : rebase_source : 0ac6dff0343efd66312a482f2be832e95013be48
2017-08-07 16:13:54 +01:00
Andreas Tolfsen
b7b13729fe Bug 1387552 - Document pageLoadStrategy in geckodriver README. r=automatedtester
MozReview-Commit-ID: 7oR84Hm9njP

--HG--
extra : rebase_source : c445670978447f21d28a2388e6dfd08aa5d67ff6
2017-08-04 20:40:58 +01:00
Andreas Tolfsen
0ff114d334 Bug 1387552 - Order capabilities lexicographically. r=automatedtester
MozReview-Commit-ID: GBvz053VdEm

--HG--
extra : rebase_source : 6b664988db52b363dd6a84dc1460ce473b7bcaa1
2017-08-04 20:36:24 +01:00
Valentin Gosu
195f9f0987 Bug 1383831 - Upgrade rust-url to version 1.5.1 r=froydnj
MozReview-Commit-ID: L3j6K5dDWHi

--HG--
extra : rebase_source : 65b34e84139927f1c28dc38cf2a00a0c2902b975
2017-08-02 13:44:48 +03:00
Yangyi Peng
f2b8c04562 Bug 1380936 - Add Minimize Window command to geckodriver; r=ato
MozReview-Commit-ID: Le6rAUMDjwe

--HG--
extra : rebase_source : 2120abbe4a4c57be3d669f02e29dc2ac03b1a90f
2017-08-01 11:42:58 +08:00