fantoccini icon indicating copy to clipboard operation
fantoccini copied to clipboard

scrollIntoView

Open Mon-ius opened this issue 1 year ago • 4 comments

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

Mon-ius avatar Jun 25 '24 01:06 Mon-ius

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

clementwanjau avatar Jul 03 '24 23:07 clementwanjau

PRs welcome :)

jonhoo avatar Jul 20 '24 07:07 jonhoo

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?

flippette avatar Dec 09 '24 03:12 flippette

Hmm, looking at the WebDriver spec, I don't see a scroll into view command :thinking: 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.

jonhoo avatar Dec 15 '24 10:12 jonhoo