Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollIntoView #256

Open
Mon-ius opened this issue Jun 25, 2024 · 4 comments
Open

scrollIntoView #256

Mon-ius opened this issue Jun 25, 2024 · 4 comments

Comments

@Mon-ius
Copy link

Mon-ius commented Jun 25, 2024

How to c.find(Locator::Css("#ID")).await?.scrollIntoView().await?.click().await?;

@clementwanjau
Copy link

clementwanjau commented Jul 3, 2024

I don't think the scrollIntoView method is implemented yet, though it's easy enough to implement.

@jonhoo
Copy link
Owner

jonhoo commented Jul 20, 2024

PRs welcome :)

@flippette
Copy link

I don't think the scrollIntoView method is implemented yet, though it's easy enough to implement.

I would like to work on this, any pointers on where I should start?

@jonhoo
Copy link
Owner

jonhoo commented Dec 15, 2024

Hmm, looking at the WebDriver spec, I don't see a scroll into view command 🤔 It may not exist at the moment, in which case the way to do it is simply to run the appropriate JavaScript with Client::execute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants