bug 1502864: geckodriver: support strictFileInteractability; r=jgraham

The strictFileInteractability capability is always supported by
geckodriver.

Depends on D10273

Depends on D10273

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Tolfsen 2018-11-03 16:31:18 +00:00
Родитель 4a6bb55dbf
Коммит 956393fdb6
2 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -9,9 +9,29 @@ Unreleased
### Added
- Introduces `strictFileInteractability` capability
The new capabilitiy indicates if strict interactability checks
should be applied to `<input type=file>` elements. As strict
interactability checks are off by default, there is a change
in behaviour when using [Element Send Keys] with hidden file
upload controls.
- Added new endpoint `GET /session/{session id}/moz/screenshot/full`
for taking full document screenshots, thanks to Greg Fraley.
# Changed
- Allow file uploads to hidden `<input type=file>` elements
Through a series of changes to the WebDriver specification,
geckodriver is now aligned with chromedrivers behaviour that
allows interaction with hidden `<input type=file>` elements.
This allows WebDriver to be used with various popular web frameworks
that—through indirection—hides the file upload control and
invokes it through other means.
0.23.0 (2018-10-03)
-------------------

Просмотреть файл

@ -156,6 +156,10 @@ impl<'a> BrowserCapabilities for FirefoxCapabilities<'a> {
.or_else(|x| Err(convert_version_error(x)))
}
fn strict_file_interactability(&mut self, _: &Capabilities) -> WebDriverResult<bool> {
Ok(true)
}
fn accept_proxy(&mut self, _: &Capabilities, _: &Capabilities) -> WebDriverResult<bool> {
Ok(true)
}