mercredi 17 août 2016

Selenium tests aren't working with IE11

I'm working with automation tests on C# + Selenium WebDriver. I stucked with the problem, tests on IE11 don't work, but work on Firefox, Chrome, IE10.

The problem is in the next part of code:

    try
    {
        (new WebDriverWait(driver, TimeSpan.FromMilliseconds(PAGELOAD_DELAY))).
            Until(driver1 => ((IJavaScriptExecutor)driver).
                ExecuteScript("return document.readyState").Equals("complete"));
    }
    catch (WebDriverTimeoutException ex1) 

Error from VSS2015 debugger:

enter image description here

I've tried the next but it didn't help

  • In IE11 protected mode turn off/on for all locations
  • In registry add [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_DISABLE_INTERNAL_SECURITY_MANAGER], [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE]
  • different versions of Selenium WD
  • both x32 and x64 versions of IE11 WebDriver
  • Microsoft IE11 WebDriver

My test environment:

  • Windows 8.1 x64
  • VisualStudio 2015
  • Selenium WebDriver 3.0.0 beta2
  • IEDriverServer Win32 2.53.1
  • NUnit 3.4.1

Aucun commentaire:

Enregistrer un commentaire