Domanda di colloquio di Infosys

How do you capture the screenshot?

Risposta di colloquio

Anonimo

22 dic 2024

File file = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); String screenshotBase64 = ((TakesScreenshot)driver).getScreenshotAs(OutputType.BASE64);