Не могу сделать нажатие кнопки:
Не видит кнопку((
public boolean cancelorder () throws ElementNotFoundException
{
driver.findElement(By.cssSelector("#set-cancel-the-order > span.ui-button-text")).click();
new Select(driver.findElement(By.id("cancel_reason_id"))).selectByVisibleText("Test Order");
driver.findElement(By.cssSelector(".ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.ui-state-focus.ui-state-hover")).click();
return true;
}
Трейс: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
Command duration or timeout: 12 milliseconds