webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Allow disabled input=file element from Element Click algorithm?

Open saschanaz opened this issue 3 years ago • 1 comments

https://w3c.github.io/webdriver/#element-click

If the element is an input element in the file upload state return error with error code invalid argument.

Looks like this is because it can open a picker, but per the spec the picker must not open if the element is disabled. Can we allow such disabled elements here?

(Context: https://github.com/web-platform-tests/wpt/pull/32381/files#diff-3f6dc3c96bfa289d88d82b72938b4822278bb0a5fbde07d002acb7266cae9aa1R42)

saschanaz avatar Jun 13 '22 17:06 saschanaz

We might be able to change the order of remote end steps but then would also have to align with other commands like Element Send Keys, and that should not cause backward incompatibility issues.

As @jgraham mentioned on Element we probably could workaround the problem in the test itself by using Actions instead, which shouldn't have this issue.

whimboo avatar Jun 20 '22 20:06 whimboo