I have a large number of selenium test scripts that work on IE, Chrome and Firefox. I now need to run them on Microsoft Edge, however, I am having a lot of issues. The main issue is that the scripts executing too quickly and not allowing the pages to load fully before moving on to the next step of the scrip. Because of this, most of my scripts are failing as they cannot find the elements. I have tried waits
(explicit and implicit) but they do not seem to work - the script keeps going and don't wait for an element to be displayed. The following is a sample of the wait code that I am using:
WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.xpath("//div/p[contains(text(), '" + menu_HeaderPortfolio+ "')]"))));
Any idea why that might be? Or how I can get edge to wait for the page to load completely before moving on with the script? Or is this a limitation with Edge?
I am using
Selenium 2.53, and
Edge WebDriver version 10586