Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Test to take the device screenshot
void readQRCode() {
MobileElement qrCodeElement = driver.findElement("com.example.qrcode:id/imageView"));
File screenshot = driver.getScreenshotAs(OutputType.FILE);
String content = decodeQRCode(generateImage(qrCodeElement, screenshot));
Copy link

eliasnogueira commented Feb 11, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment