w3c / w3c/webdriver

Element Click unable to interact with element in <iframe> that is outside viewport

Open
#1,141 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

The Element Click command is currently unable to interact with (hit) elements inside <iframe>s that are outside the viewport because it does not bring the <iframe> into view first. This is because Element.scrollIntoView on the element inside the frame only moves the viewport of the frame.

This bug was reported on geckodriver, so see https://github.com/mozilla/geckodriver/issues/1039 for more details.

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 Element Click behavior described in this issue and the linked geckodriver issue 1039. Trace how scrolling is defined for elements inside an iframe, then establish the expected behavior for an iframe outside the viewport; the issue is done when Element Click can interact with the target under that condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api, testing-qa
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.