privatebooleanwaitElementToBeDisplayed(finalWebElementelement){booleanwait=false;if(element==null)returnwait;try{wait=newWebDriverWait(driver,Integer.parseInt(Config.getConfig("waitTime"))).until(newExpectedCondition<Boolean>(){publicBooleanapply(WebDriverd){returnelement.isDisplayed();}});}catch(Exceptione){System.out.println(element.toString()+" is not displayed");}returnwait;}