You are on page 1of 1

pragma solidity ^0.5.

0; // Import libraries import


org.openqa.selenium.By; import
org.openqa.selenium.WebDriver; import
org.openqa.selenium.chrome.ChromeDriver // Set up the
WebDriver System.setProperty("webdriver.chrome.driver",
"path/to/chromedriver"); WebDriver driver = new
ChromeDriver(); // Navigate to the website driver.get("website
URL"); // Find the block you want to autoclick WebElement
block = driver.findElement(By.id("blockID")); // Autoclick the
block block.click();

You might also like