Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
public static void main(String[] args) {
WebDriver driver = null;
ChromeOptions opt = new ChromeOptions();
ChromeDriverManager.getInstance(DriverManagerType.CHROME).setup();
opt.addArguments("--start-maximized");
driver = new ChromeDriver(opt);
driver.manage().window().setSize(new Dimension(1920, 1080));
driver.get("https://kenwheeler.github.io/slick");
WebElement el = driver.findElement(By.className("slick-arrow"));
for (int i = 0; i <50; i++) {
el.click();
System.out.println("hello");try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question