*/
public void waitForElementAppear(String msg, final By locator) {
WebDriverWait wait = new WebDriverWait(getDriver(), timeoutInSecs);
wait.withMessage(msg);
wait.ignoring(NoSuchElementException.class);
wait.until(new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver d) {
return isElementPresent(locator);
}
});