Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ public void selectPrimary(String id) {
public void selectSecondary(String primaryId, String secondaryId) {
WebElement primaryMenuItem = root.findElement(By.cssSelector("#" + primaryId + " > a"));
new Actions(browser).moveToElement(primaryMenuItem).perform();
waitGui().until().element(By.id(primaryId + "-secondary")).is().visible();
try {
waitGui().until().element(By.id(primaryId + "-secondary")).is().visible();
} catch (org.openqa.selenium.TimeoutException e) {
// try click when hower does not work
primaryMenuItem.click();
waitGui().until().element(By.id(primaryId + "-secondary")).is().visible();
}
selectItem(secondaryId);
}

Expand Down
Loading