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

Confirmed Issue #9706328 • Assigned to Steven K.

Details

Author
Greek H.
Created
Nov 7, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
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.

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
    
    
    
    
    
    

    Test using codeception (php):

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

    Exception:

      [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: '10.0.2.15', 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

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

Sign in