Skip to content

Fokus on an Element for a screenshot. #631

Answered by Siolto
gladklo asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the native WebdriverIO function scrollIntoView. You can probably do something like this:

// identify
const vizFrame = await browser.asControl({...})

// get the WebdriverIO element
const vizFrameWebElement = await vizFramge.getWebElement()

// scroll to element
await vizFrameWebElement.scrollIntoView()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gladklo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants