How to handle camera pop-up on Chrome in Geb framework?

How to handle camera pop-up on Chrome in Geb framework?

Hey Alex,

To handle camera pop-up on Chrome in Geb framework, 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)