Skip to content

Commit

Permalink
object list test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jun 3, 2020
1 parent 742702a commit 1feb37d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -79,7 +79,8 @@ public SelenideElement getToolbarButton(String iconCssClass){
ElementsCollection toolbarButtonsList = buttonToolbar
.findAll(By.tagName("button"));
for (SelenideElement button : toolbarButtonsList) {
if (button.$(Schrodinger.byElementAttributeValue("i", "class", iconCssClass)).exists()) {
SelenideElement iconElement = button.$(By.tagName("i")).waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S);
if (iconElement != null && iconElement.exists() && iconElement.getAttribute("class") != null && iconElement.getAttribute("class").contains(iconCssClass)) {
buttonElement = button;
}
}
Expand Down

0 comments on commit 1feb37d

Please sign in to comment.