Skip to content

strange issue with ScrollIntoView #126

@dornech

Description

@dornech

Lets assume I have a Webelement down the page I want to scroll to.
For testing/debugging I reference the VBA add-in noth the DLL.
In real code I use findelement for this without object assignment but I omit this here to make it more clear because I think that should not not make the difference here, should it?

objWebElt.ScrollIntoView
-> does not work during regular execution, does only scroll by a few lines horizontally
-> does work in debug mode (stepping with F8)

objWebDriver.ExecuteScript "arguments[0].scrollIntoView({behavior: ""auto"", block: ""start"", inline: ""nearest""})", objWebElt
-> does work (regular execution & debugging/F8-stepping

objWebDriver.ExecuteScript "arguments[0].scrollIntoView()", objWebElt
-> does work (regular execution & debugging/F8-stepping

Strange, isn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions