staticWait(3000);
if(Utility.isExecutingOnMobile()) {
waitForElementToBeVisible(driver, FavoriteLogo);
if(!FavoriteLogo.isDisplayed()) {
logger.error("Favorite Logo is not displayed");
Utility.addAllureAttachment("Favorite Logo is not displayed", driver); }
assertTrue(FavoriteLogo.isDisplayed());
FavoriteLogo.click();}
else {
waitForElementToBeVisible(driver, FavoritesLink);
scrolltoTop();
if(!FavoritesLink.isDisplayed()) {
logger.error("Favorites Link is not displayed");
Utility.addAllureAttachment("Favorites Link is not displayed", driver);
}
assertTrue(FavoritesLink.isDisplayed());
FavoritesLink.click();
{
Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)
.withTimeout(Duration.ofMillis(timeOutInMilliSecondsForWebElements))
.pollingEvery(Duration.ofMillis(pollingTimeInMillieSeconds))
.ignoring(NoSuchElementException.class);
wait.until(ExpectedConditions.visibilityOf(webElement));