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

Confirmed Issue #9706328 • Assigned to Steven K.


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.


0 attachments

    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”

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

    Sign in