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();