webdriverio/webdriverio
Voir sur GitHub[🐛 Bug]: scrollIntoView does not scroll to the center of the viewport when used inside an iframe.
Open
#13 050 ouverte le 18 juin 2024
Bug 🐛help wanted
Description
Have you read the Contributing Guidelines on issues?
- I have 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