How to handle camera pop ups on Chrome in Geb framework?

How to handle camera pop ups on Chrome in Geb framework ?

Hi 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)