зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4a6bb55dbf
Коммит
956393fdb6
|
@ -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 chromedriver’s 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)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче