Selenium Webdriver: Element Not Visible Exception

You have two buttons with given xpath on this page, first is not visible, thats why you are getting ElementNotVisibleException

One is under <div class="loginPopup">

Second (the one you need) is under <div class="page">

So change your xpath to look like this, and it will fix your problem:

By.xpath("//div[@class="page"]//div[@id='_loginButton']")

Leave a Comment