w3c / w3c/webdriver

setWindowRect should be matched as a capability

Open
#1,793 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-discussion New Session
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

c.f. https://matrix.to/#/!zvtoFTlOBeOwHrBlEK:matrix.org/$yumW_YPZ6kAsKlD3SB_muMP9ImAUoF893INwdNegTEw?via=matrix.org&via=mozilla.org&via=igalia.com

Nowhere does https://w3c.github.io/webdriver/#dfn-matching-capabilities match setWindowRect, so it effectively is ignored when passed as a capability (see: https://github.com/w3c/webdriver/issues/1792).

However, per @whimboo:

In Firefox we match that capability and fail if the value is not appropriate

I have not tested what other implementations do.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WebDriver specification's matching capabilities definition and the setWindowRect capability, then review the linked WebDriver issue 1792 and the referenced discussion. Done when the specification clearly defines whether and how setWindowRect is matched, consistently with the stated Firefox behavior.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.