Question d’entretien chez Infosys

How do you capture the screenshot?

Réponse à la question d'entretien

Utilisateur anonyme

22 déc. 2024

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