public boolean waitForElementPresent(String locator) { for (int second = 0; ; second++) { if (second >= TestConsts.TIMEOUT) return false; try { if (selenium.isElementPresent(locator)) return true; } catch (Exception e) { } sleep(1000); } }
public boolean waitForElementPresent(String locator) { for (int second = 0; ; second++) { if (second >= TestConsts.TIMEOUT) return false; try { if (selenium.isElementPresent(locator)) return true; } catch (Exception e) { } sleep(1000); } }