How to handle camera pop-ups on Chrome in Gauge framework?

How to handle camera pop-ups on Chrome in Gauge framework?

Hello Emma,

Please use this script to allow camera popup in Chrome:

    driver.get("https://webcamtests.com/check");
    Thread.sleep(2000);
    driver.findElement(By.id("webcam-launcher")).click();
    Thread.sleep(2000)