Selenium Webdriver Appium Complete TutorialSelenium Webdriver Appium Complete Tutorial
Automation Testing
  • Selenium
    • Selenium Java Tutorial
    • Selenium C# Tutorial
  • Appium
    • Appium Java Tutorial
    • Appium C#Tutorial
  • Katalon
  • TestNG
  • Reports
    • Extent Reports
      • Extent Reports – Java
      • Extent Reports – Java -Version3
      • Extent Reports – C#
    • Vigo Reports
    • AT Excel Report
  • Excel
    • Apache POI – Java
  • Interview Questions
    • Selenium
  • Demo Site
  • Practice Site
  • More…
    • AutoIt
    • Sikuli
    • Robot Class
    • File Upload
    • ScreenShot
      • AShot
February 4, 2017

Selenium ElementNotVisibleException





Selenium ElementNotVisibleException is also one of the frequent exceptions which we will face in selenium webdriver while automating any kind of application. This exception tells you that the WebElement that you are trying to interact with is not visible to the user. If the element is not visible to the user then they are not going to able to interact with it.




Below are the causes to face this exception:

Thrown to indicate that although an element is present on the DOM, it is not visible, and so is not able to be interacted with. To overcome this kind of situation we need to use synchronization concept in selenium. So, add an explicit wait to wait for the correct conditions to be met before trying to interact with the element. We have an option to use wait in so many ways or conditions. Will make use of all those things depends on the situation and will try to resolve or handle these type of scenarios.

Sometimes if the element is there on the web page and not in the visible area then also you can find this type of exception. To overcome this situation we need to scroll to that particular web element first then you can interact with that element to resolve this type of exception. Most of the times selenium webdriver will take care of this situation that it will find the element which is not there on the visible area and it will interact with that element. But some times, if the situation comes, then we need to scroll to the particular web element or scroll in the webpage and then can interact with the required element.

This way we can overcome the ElementNotVisibleException in selenium webdriver.

Please watch the YouTube video for this blog for better understanding.



Share this post: on Twitter on Facebook on Google+

Taking Web Element Screenshot in Selenium Extent Reports Introduction – Java – Version3

Related Posts

HANDLE TEXTBOXES IN SELENIUM

Selenium - Java

Handling Textboxes in Selenium

JAVASCRIPTEXECUTOR IN SELENIUM

Selenium - Java

JavaScriptExecutor in Selenium

NOSUCHWINDOW EXCEPTIONS

Selenium - C#, Selenium - Java

Selenium NoSuchWindowException

NOSUCHFRAME EXCEPTIONS

Selenium - C#, Selenium - Java

Selenium NoSuchFrameException

NOSUCHELEMENT EXCEPTION

Selenium - C#, Selenium - Java

Selenium NoSuchElementException

SELENIUM WEBDRIVER EXCEPTIONS

Selenium - C#, Selenium - Java

Selenium WebDriver Exceptions

HANDLING BASIC ELEMENTS IN SELENIUM

Selenium - C#, Selenium - Java

Handling Basic Elements in Selenium

USEFUL TOOLS AND PLUGINS IN SELENIUM

Selenium - C#, Selenium - Java

Useful Tools and Plugins in Selenium

LAUNCH BROWSER IN SELENIUM 3

Selenium - Java

Launch Browser in Selenium3

SELENIUM WEBDRIVER METHODS

Selenium - Java

Selenium Webdriver Methods

Newsletter

Recent Posts

  • Introduction to Katalon AnalyticsKatalon Analytics – Introduction
    November 19, 2017
  • HANDLE TEXTBOXES IN SELENIUMHandling Textboxes in Selenium
    May 1, 2017
  • JAVASCRIPTEXECUTOR IN SELENIUMJavaScriptExecutor in Selenium
    May 1, 2017
  • Excel to DataProviderRead data from Excel to DataProvider in Selenium
    April 23, 2017
  • Selenium Interview Questions – 1Selenium Interview Questions – 1
    April 12, 2017
© Selenium Webdriver Appium Complete Tutorial 2018