Skip to content

Commit

Permalink
Try scrolling into view more
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad committed Sep 12, 2024
1 parent d5f0521 commit 19adf72
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.interactions.MoveTargetOutOfBoundsException;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

Expand Down Expand Up @@ -429,7 +430,8 @@ public int getTotalPlotCount()

public WebElement openExclusionBubble(String acquiredDate)
{
getWrapper().shortWait().ignoring(StaleElementReferenceException.class).withMessage("Exclusion pop-up for Acquired Date = " + acquiredDate)
getWrapper().shortWait().ignoring(StaleElementReferenceException.class, MoveTargetOutOfBoundsException.class)
.withMessage("Exclusion pop-up for Acquired Date = " + acquiredDate)
.until(input -> {
getWrapper().mouseOver(getPointByAcquiredDate(acquiredDate));
return getWrapper().isElementPresent(Locator.tagWithClass("div", "x4-form-display-field").withText(acquiredDate));
Expand Down

0 comments on commit 19adf72

Please sign in to comment.