Перейти к содержимому

Tosternica

Регистрация: 18 мар 2014
Offline Активность: 19 мар 2014 13:44
-----

Мои темы

Помогите нажать кнопку по локатору

19 марта 2014 - 13:33

Не могу сделать нажатие кнопки:

Не видит кнопку((

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