package playground; import com.google.common.util.concurrent.Uninterruptibles; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import java.time.Duration; public class HiddenLayers { private WebDriver driver; @BeforeClass public void StartSession() { WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); driver.manage().window().maximize(); driver.get("http://localhost:3000/hiddenlayers"); } @AfterClass public void CloseSession() { Uninterruptibles.sleepUninterruptibly(Duration.ofSeconds(3)); driver.quit(); } @Test public void test01_HiddenLayers() { driver.findElement(By.id("greenButton")).click(); driver.findElement(By.id("blueButton")).click(); } }