Skip to content

Commit

Permalink
schrodinger: temporarily commented main menu items expanding
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Dec 8, 2020
1 parent 10f127e commit ebcf3e0
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -447,11 +447,12 @@ private SelenideElement getMainMenuItemElement(String topLevelMenuKey, String ma
SelenideElement topLevelMenu = $(Schrodinger.byDataResourceKey(topLevelMenuKey));
topLevelMenu.shouldBe(Condition.visible);

SelenideElement topLevelMenuChevron = topLevelMenu.parent().$(By.tagName("i"));
if (!topLevelMenuChevron.has(Condition.cssClass("fa-chevron-down"))) {
topLevelMenu.click();
topLevelMenuChevron.shouldHave(Condition.cssClass("fa-chevron-down")).waitUntil(Condition.cssClass("fa-chevron-down"), MidPoint.TIMEOUT_DEFAULT_2_S);
}
//todo temporary commented
// SelenideElement topLevelMenuChevron = topLevelMenu.parent().$(By.tagName("i"));
// if (!topLevelMenuChevron.has(Condition.cssClass("fa-chevron-down"))) {
// topLevelMenu.click();
// topLevelMenuChevron.shouldHave(Condition.cssClass("fa-chevron-down")).waitUntil(Condition.cssClass("fa-chevron-down"), MidPoint.TIMEOUT_DEFAULT_2_S);
// }

SelenideElement mainMenu = topLevelMenu.$(Schrodinger.byDataResourceKey("span", mainMenuKey), index);
mainMenu.shouldBe(Condition.visible);
Expand Down

0 comments on commit ebcf3e0

Please sign in to comment.