webdriverio/webdriverio

[🐛 Bug]: scrollIntoView does not scroll to the center of the viewport when used inside an iframe.

Open

#13 050 ouverte le 18 juin 2024

Voir sur GitHub
 (3 commentaires) (0 réactions) (1 assigné)JavaScript (6 029 stars) (1 793 forks)batch import
Bug 🐛help wanted

Description

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.38

Node.js Version

v18.14.0

Mode

Standalone Mode

Which capabilities are you using?

{
      browserName: 'chrome',
    }

What happened?

When scrolling to an element inside an iframe with the settings { block: "center" }, it is not scrolling to the center of the viewport.

What is your expected behavior?

Having the element in the center of the viewport

How to reproduce the bug.

You can clone this repo and test it :

git@github.com:github-care-maxime/wdio-bug-reproduction.git

Relevant log output

No relevant outpout.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Guide contributeur