Код: Выделить всё
public static void main(String[] args) throws Exception
{
WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
driver.get("https://dummy-tickets.com/buyticket");
driver.manage().window().maximize();
driver.findElement(By.xpath("//a[normalize-space()='Both']")).click();
//driver.findElement(By.xpath("//input[@value='roundtripmain']")).click();
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(15));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//input[@value='roundtripmain']"))).click();
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -selection