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

402 Коммитов

Автор SHA1 Сообщение Дата
Jason Juang 029b60f44f Accept "page load" and "pageLoad" in the Marionette response (#656) 2017-04-19 23:36:12 +01:00
Andreas Tolfsen 06249a7b37 readme: add note about webdriver crate 2017-04-19 21:55:20 +01:00
Andreas Tolfsen 44d47f2751 readme: document usage flags 2017-04-19 21:55:20 +01:00
Andreas Tolfsen 363cf9ed79 cargo: update dependencies 2017-04-19 20:15:06 +01:00
Andreas Tolfsen 554430eb9b changes: update 2017-04-18 19:39:15 +01:00
Andreas Tolfsen c219de22c6 cargo, changes: bump webdriver to v0.25.1 2017-04-18 19:33:52 +01:00
Andreas Tolfsen f798e4bb14 cargo: bump dependencies 2017-04-18 19:26:01 +01:00
Andreas Tolfsen dccea97b6c changes: v0.16.0 has not been released
Prevent confusion amongst users as towards whether v0.16.0 is out.
2017-04-18 12:55:54 +01:00
Andreas Tolfsen 15345b6780 marionette: reduce importance of marionette communication
The log messages of what geckodriver sends and receives from the
Marionette server will now be logged at trace level.  This brings parity
to the way protocol chatter is logged in the Marionette server.
2017-04-12 15:19:25 +01:00
Andreas Tolfsen baf5451f40 logging: ignore records from other modules
This effectively filters out all log entries from modules that do not
begin with either "geckodriver" or "webdriver".  This is a big hack,
but works well enough for the time being.
2017-04-12 15:19:25 +01:00
Andreas Tolfsen 871a7065b8 marionette: convert str to owned string
Fixes build.
2017-04-12 15:08:06 +01:00
Andreas Tolfsen 7c577c0417 marionette: append X11 style -marionette flag when starting browser
https://github.com/jgraham/rust_mozrunner/pull/7 was recently submitted
to make mozrunner not imply starting the Marionette server by passing the
--marionette flag.  This patch appends -marionette, with a single dash,
so that it will be accepted on Windows systems.

More discussion around this in
2e0054b90e.

Fixes: https://github.com/mozilla/geckodriver/issues/640
2017-04-12 14:51:16 +01:00
Jason Juang 72abe37b99 Make acceptInsecureCerts work with Firefox 52 (#632)
Fixes: https://github.com/mozilla/geckodriver/issues/630
2017-04-11 14:21:31 +01:00
Andreas Tolfsen 2448d3a049 ci: log cc compiler when building 2017-04-10 21:23:14 +01:00
Andreas Tolfsen 0438068202 ci: force gcc compiler for i686-unknown-linux-musl
Travis at some point changed the default compiler in their images to be
clang.  Cross-compiling Rust code with clang is not possible quite yet,
so we force gcc to be used.

Fixes: https://github.com/mozilla/geckodriver/issues/495
2017-04-10 21:23:14 +01:00
Andreas Tolfsen 0ad52a1e8f readme: document default profile
Add documentation that explains where the fresh profiles are created
and how you can get its path from the returned capabilities object.

Fixes: https://github.com/mozilla/geckodriver/issues/605
2017-04-10 18:03:48 +01:00
Andreas Tolfsen 4ce4fb34d4 readme: fix sessionId in curl example 2017-04-10 16:33:57 +01:00
Andreas Tolfsen d322bcfb14 Update usage instructions (#625)
* readme: expand usage instructions

Expands the usage instructions section of the README to contain actual,
useful information on how to use geckodriver with Selenium and as a
standalone WebDriver server.
2017-04-10 16:29:27 +01:00
Andreas Tolfsen 05edecf389 readme: remove version output in -h display 2017-04-10 14:33:44 +01:00
Andreas Tolfsen 441c098789 changes: update for 0.16.0 release 2017-04-10 14:31:00 +01:00
Andreas Tolfsen 2606ad398d readme: recommend at least Firefox 52.0.3 or greater 2017-04-10 13:50:15 +01:00
Andreas Tolfsen 3237ea34fb cargo: upgrade dependencies 2017-04-10 13:36:27 +01:00
Andreas Tolfsen 8dd4d2ae56 cargo, marionette: upgrade to webdriver 0.25.0 2017-04-10 13:36:27 +01:00
Andreas Tolfsen 41f89d878c marionette: send text string and value array for SendKeysParameters
Following https://bugzilla.mozilla.org/show_bug.cgi?id=1348782
and https://bugzilla.mozilla.org/show_bug.cgi?id=1354323, the
sendKeysToElement and sendKeysToDialog commands in Marionette accept
only a string `text' field as input.

These patches to Firefox has since been uplifted all the way to Firefox
53.  In order to make geckodriver work with newer Firefox versions again,
we need to pass the `text' field.  But in order to support older Firefoxen
without the `text' field requirement, we also want to continue to send
`value' as a string array.

Clients must unfortunately send a string `text' field, but it is believed
it is easier to upgrade to the latest Selenium release than to pin the
exact versions of geckodriver and Firefox.

Fixes: https://github.com/mozilla/geckodriver/issues/594
2017-04-07 14:28:59 +01:00
Andreas Tolfsen 46518d9d8a marionette: set marionette.log.level pref
marionette.logging has been renamed marionette.log.level, but we keep
the former around for backwards compatibility with earlier Firefoxen.

This is similar to change made in 8f19dc4dac
for marionette.port.
2017-04-07 14:27:34 +01:00
Andreas Tolfsen c6cf7b9e2b marionette: remove capabilities field wrapping for NewSession
Remove one layer of wrapping inside the `capabilities' field when
geckodriver sends the capabilities to Marionette.

Prior to this patch, geckodriver would send the following JSON Object
to Marionette's newSession command:

	{capabilities: {foo: 1, {desiredCapabilities: {foo: 1}}}}

Following this patch, it sends:

	{foo: 1, {capabilities: {desiredCapabilities: {foo: 1}}}}

In the future, the idea is to remove the capabilities object altogether
and just send

	{foo: 1}
2017-04-07 14:26:58 +01:00
Andreas Tolfsen 8f19dc4dac marionette: set marionette.port in profile
The marionette.defaultPrefs.port preference
has been renamed to marionette.port as part of
https://bugzilla.mozilla.org/show_bug.cgi?id=1344748.

We keep the fallback preference around until Firefox 54 becomes stable
for backwards compatibility reasons.
2017-04-04 17:43:45 +01:00
Andreas Tolfsen 2e0054b90e prefs, marionette: remove or move remaining required prefs
When a user provides a profile that wnats to override browser.warnOnQuit,
browser.tabs.warnOnClose, or browser.showQuitWarning, we should
allow users to do stupid things.  We should not prevent the profile's
preferences from being applied.

dom.ipc.cpows.forbid-unsafe-from-browser is being removed because all
targetted Firefoxen are not using any unsafe CPOWs in Marionette code.

marionette.defaultPrefs.enabled is superfluous for as long as the
--marionette flag is being passed to the Firefox binary.

Remaining relevant prefs from prefs::REQUIRED have been merged into
prefs::DEFAULT.

This is a follow-up to the discussion around
https://github.com/mozilla/geckodriver/pull/423.
2017-04-04 17:42:28 +01:00
Marc Fisher 95ef3b49bc Improve firefox profile prefs merging (#423)
Merges prefs::Default prefs into custom profile unless the custom
profile explicitly sets that preference.

Sets the marionette.defaultPrefs.port preference last so users cannot
accidentally overwrite its value by providing it in capabilities.
2017-04-04 15:02:09 +01:00
Andreas Tolfsen 68ca363993 capabilities: fix tests
This change makes the tests compile and makes use of the public typedef
webdriver::capabilities::Capabilities, which reduces the need for type
declarations of BTreeMap.
2017-04-03 14:18:26 +01:00
Andreas Tolfsen a26cfb213a prefs: correct fixed array length
Fixes build.
2017-04-03 14:02:30 +01:00
Andreas Tolfsen 6ec30ca4a3 prefs: disable flash and plugin container (#590)
In the interests of avoiding the

	Aborting on channel error.: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 2056

error we have seen frequently reported on geckodriver, this change forces
the Flash plugin to be disabled by default.  The Firefox homepage triggers
the plugin container to start, which is causing problems when quitting
Firefox through geckodriver.

Since Flash cannot be interacted with through WebDriver and it is soon
going away from the web, I don't think this is a big sacrifice.

Fixes: https://github.com/mozilla/geckodriver/issues/225
2017-04-03 14:00:18 +01:00
Ondřej Machulda fd9bf452bb Update required Selenium version to 3.3.1 2017-04-02 12:44:48 +01:00
James Graham 6d25d38304 Update for Window[Size|Position] -> WindowRect 2017-03-28 16:22:54 +01:00
Andreas Tolfsen 9d76e0bd49 Merge branch 'rebase-553' 2017-03-28 14:25:51 +01:00
AutomatedTester 55e7a7d532 marionette: make Send Keys and Send Alert Text accept a string 2017-03-28 14:25:16 +01:00
James Graham 6f1e3c1924 Support the new version of the new session command.
Support the alwaysMatch/firstMatch new session command. Move the
capabilities handling into geckodriver as far as possible so that
marionette itself should not be rejecting sessions (as this is
expensive and can only happen after gecko starts). Use mozversion to
provide (currently somewhat hacky) version number matching for the
browserVersion capability.
2017-03-27 19:39:21 +01:00
kirhgoph 74fb9c7ffb Fix for "corrupt deflate stream" exception 2017-03-24 16:35:48 +00:00
Andreas Tolfsen e153cebbcd changes: update version number 2017-03-09 21:18:56 +00:00
jgraham f3bbb57e11 Make it clearer that Selenium is not the only client 2017-03-09 14:25:33 +00:00
jgraham f6bfa90ac9 Mention required selenium version 2017-03-09 14:22:44 +00:00
James Graham 11656587d1 Update version number for release 2017-03-08 11:34:04 +00:00
James Graham e1bb55d951 Cargo update 2017-03-08 11:30:44 +00:00
Andreas Tolfsen 1487a16227 changes: update for changes in webdriver 0.23.0 2017-03-03 16:38:14 +00:00
Andreas Tolfsen bee0209683 cargo: upgrade to webdriver v0.23.0 2017-03-03 16:38:14 +00:00
James Graham d41e06d30e Update to webdriver 0.22 2017-02-27 17:32:18 +00:00
James Graham 1c8b27a437 Print the binary args when starting the browser 2017-02-27 17:32:18 +00:00
James Graham 6d946b86de Pass a slice of extension routes rather than an &Vec 2017-02-27 17:32:18 +00:00
Andreas Tolfsen 140ab5a897 marionette: add Get Timeouts command 2017-02-24 17:44:11 +00:00
Andreas Tolfsen 09231df352 cargo, marionette: upgrade to webdriver 0.21.0 2017-02-24 17:44:11 +00:00