WebDriver throws ElementNotVisibleException for everything on a page if <body style="overflow:hidden;">

Fixed Issue #9706328


Greek H.
Nov 7, 2016
This issue is public.
Found in
  • Microsoft Edge
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

The WebDriver seems to think that everything on the page is hidden, even elements that are clearly visible. I do not have this problem when using Firefox or Chrome WebDrivers. My current workaround is to use a JavaScript executor to get rid of the style attribute before trying to interact with anything on the page.


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

  • Thank you for your feedback. Could you please provide us your sample code and html code that reproduce this issue. This will help our investigation.

    All the best,
    The MS Edge Team

  • Sample html


    Test using codeception (php):

    $I->click('button[data-modal-confirmation-proceed]'); // 2nd call


      [Facebook\WebDriver\Exception\ElementNotVisibleException] Element not displayed (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 30 milliseconds
    Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
    System info: host: 'MSEDGEWIN10', ip: '', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_121'
    Driver info: org.openqa.selenium.edge.EdgeDriver
    Capabilities [{applicationCacheEnabled=true, acceptSslCerts=true, browserVersion=38.14393.0.0, platformVersion=10, locationContextEnabled=true, webStorageEnabled=true, browserName=MicrosoftEdge, takesScreenshot=true, pageLoadStrategy=normal, takesElementScreenshot=true, platformName=windows, platform=ANY}]
    Session ID: 5B24F32A-74A6-4E76-8730-A5326CF13978  

    The workaround suggested by Greek H. works.

  • Microsoft Edge Team

    Changed Assigned To from “Ibrahim O.” to “Steven K.”

    Changed Status to “Confirmed”

  • Hello all,

    I would like to know if this issue is still reproducible in the any of the recent releases of Edge?

    I created C# solution and attached it.  It is a windows console application.  I was not able to repro this issue in 14393.1066. However, I want to verify that my repro is testing the issue reported here.

    I am also attaching a simple HTML file for your verification as well.  Basically, just setting the body style to overflow:hidden.

    Apologize for the delay and appreciate the support,

    The MS Edge Team

  • Hello,
    The issue is reproducible on the following app version:
    Microsoft Edge 38.14393.0.0
    Microsoft EdgeHTML 14.14393

    This is the app version bundled on the VM that microsoft supplies here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

  • Hi Antonis,

    I will try the test on the provided VM and verify the version number and let you know.

    Appreciate the update,


  • Hi Antonis,

    I ran this test again and created a test to verify the functionality.  I have attached the C# .cs file and the HTML file.

    I wanted to let you know that this has been fixed in 14393.1066.

    I will be moving this to fixed unless you say otherwise.  I.e. by running the same test or suggesting corrections to the repro I have provided.

    Copying the basic test here:

            public void clickOverflowHidden()
                searchFor = "button";

                Actions clicker = new Actions(driver);
                By myBy = By.TagName(searchFor);
                foundElement = driver.FindElement(myBy);

                Assert.AreEqual("wasclicked", driver.FindElement(myBy).GetAttribute(“value”));

    Thank you for the help,


  • Microsoft Edge Team

    Changed Status from “Confirmed” to “Fixed”

You need to sign in to your Microsoft account to add a comment.

Sign in