-
Im trying to take a screenshot of a <sap.viz.ui5.controls.VizFrame> in a <sap.suite.ui.commons.ChartContainer>. But the chart is so low in the view that i can´t see it in the screenshot. Is there a possibility to manually scroll or focus on a specific element? Or maybe set the browser zoom so the chart fits in the screen? |
Beta Was this translation helpful? Give feedback.
Answered by
Siolto
Aug 5, 2024
Replies: 1 comment
-
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() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gladklo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the native WebdriverIO function scrollIntoView. You can probably do something like this: