I am using WebDriver(Eclipse -Java) to automate a Registration page. On clicking the 'Register' button, a 'success message' is displayed and need to validate the same.
I can do this successfully in IE8. But not able to validate the same in Firefox. I have tried different waits 1. d1.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
WebDriverWait wait = new WebDriverWait(driver, 10); wait.withTimeout(30, TimeUnit.SECONDS); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("ElmId"));
Wait wait = new FluentWait wait = new FluentWait(d1).withTimeout(60, SECONDS); wait.until(new Function() wait.until(ExpectedConditions.visibilityOf(d1.findElement(By.id("elementid"))));
Has anyone faced similar issues? Any solution?