Pergunta de entrevista da empresa Infosys

How do you capture the screenshot?

Resposta da entrevista

Sigiloso

22 de dez. de 2024

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