How To Check Visibility Of Web Elements Using WebDriver Commands

Опубликовано: 02 Май 2026
на канале: Teach Yourself Test Automation
278
2

How To Check Visibility Of Web Elements Using WebDriver Commands | http://teachyourselftestautomation.com

Hello and welcome to Day 22 - How To Check Visibility Of Web Elements Using WebDriver Commands

We are looking at webdriver commands today which is all around the visibility of elements on a web page

There are three in particular which we are going to look at today in this video and they are;

isDisplayed()
isSelected()
isEnabled()

It was a bit difficult to find a practice site but got one finally and can do this video

Practice website is: https://www.freecrm.com/register/

First one we look at is - isSelected()

This command is mainly used for radio buttons, check boxes and dropdowns and returns true or false values

So if the web element is selected you get a true and if not selected you get false

Second one we look at is - isEnabled()

This command is mainly used for checking if any web element is enabled or disabled on a web page

Like isSelected() if the web element is selected you get a true and if not selected you get false

Third one we look at is - isDisplayed()

This command is mainly used for checking if any web element is enabled or disabled on a web page

Like isSelected() and isEnabled() if the web element is selected you get a true and if not selected you get false

When you run code above in eclipse you will need to use print command to see out come or result in the console

Please see video for live examples on the above    • How To Check Visibility Of Web Elements Us...  

Don't forget to subscribe if you found this video helpful, support the channel and SUBSCRIBE

Many Thanks

Kevin Owasu Itoe

How To Check Visibility Of Web Elements Using WebDriver Commands | http://teachyourselftestautomation.com
--------------------------------------------------------------------------------------------------------
#testautomation #teachyourselftestautomation #selenium #webdriver #java
--------------------------------------------------------------------------------------------------------
Follow me @
Facebook:   / kevin.itoe.50  
Google+: https://plus.google.com/u/0/103559195...
Pinterest: https://www.pinterest.co.uk/owasuik/
My Blog: http://teachyourselftestautomation.com/
My YouTube Channel:    / @teachyourselftestautomatio1271  
--------------------------------------------------------------------------------------------------------
My Videos:
   • Install And Configure Java | Selenium Webd...  
   • Eclipse Installation | eclipse software | ...  
   • Java Project Template | Java Projects | My...  
   • Download And Configure Selenium | Selenium...  
   • Basic Selenium Test Script To Invoke Web B...  
   • Selenium Tutorial | WebDriver Browser And ...  
   • Selenium Webdriver Locators | Locators In ...  
   • Find Elements On Web Page With Link Text X...  
   • How To Validate Xpath And CSS Using Browse...  
   • How To Write Customized Xpath In Selenium ...  
   • CSS Selector | How To Write Custom CSS Sel...  
   • Preceding-Sibling Xpath | How To Identify ...  
   • How To Handle Static Dropdown Selenium Web...  
   • What Is The Difference Between Absolute XP...  
   • Video  
   • How To Automate Selecting A Checkbox In Se...  
   • How To Automate Radio Button In Selenium W...  
   • How To Handle Radio Buttons Dynamically In...  
   • How To Handle Alert In Selenium WebDriver  
   • How To Check Visibility Of Web Elements Us...  
-------------------------------------------------------------------------------------------------------
What Wikipedia says about selenium: https://en.wikipedia.org/wiki/Seleniu...)
What Wikipedia says about test automation: https://en.wikipedia.org/wiki/Test_au...