Skip to content

Commit

Permalink
fix for search button click in the popup
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jun 1, 2020
1 parent aed7aad commit a73be75
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -14,6 +14,8 @@
import com.evolveum.midpoint.schrodinger.util.Schrodinger;

import org.openqa.selenium.By;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.interactions.Coordinates;

import static com.codeborne.selenide.Selectors.byText;

Expand All @@ -35,8 +37,10 @@ public SearchItemField<Search<T>> byName() {
}

public Search<T> updateSearch(){
getParentElement().$(Schrodinger.byDataId("searchSimple"))
.waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
SelenideElement simpleSearchButton = getParentElement().$(Schrodinger.byDataId("searchSimple"))
.waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
Actions builder = new Actions(WebDriverRunner.getWebDriver());
builder.moveToElement(simpleSearchButton, 5, 5).click().build().perform();
return this;
}

Expand Down

0 comments on commit a73be75

Please sign in to comment.