How To Handle Links In Selenium Webdriver | How To Click On A Link Using Selenium Webdriver

Опубликовано: 24 Март 2026
на канале: Teach Yourself Test Automation
7,234
39

How To Handle Links In Selenium Webdriver | How To Click On A Link Using Selenium Webdriver http://teachyourselftestautomation.com
Selenium Certification Training: http://bitly.com/2PA8HCA

Hello and welcome to Day 28 - How To Handle Links In Selenium Webdriver | How To Click On A Link Using Selenium Webdriver

Today we would love to keep this video short. We will do two videos on how to handle links In Selenium Webdriver
What we will look at today is how to count how many links there are on a web page and how to limit the scope of webdriver to a section of a web page

In the next video we will look at how to click on individual links to open tabs/windows

Also we will see how to open multiple windows and return the title of each window/tab opened by selenium webdriver

Our practice web site for day 28 is https://www.amazon.co.uk/

How do you know you are dealing with a link on a web page
In the HTML code for that element the Tag Name always is 'a' which stands for Anchor

So if we know all links on a web page will have Tag Name as 'a' we can easily go ahead and count the number of links on the web page by using attribute 'Tag Name' to find all link elements
on the web page

Also we could go ahead and find the HTML code for a particular section of a page from which we would like to retrieve and count links make use of a WebElement and set it as our driver to use
and count links in that area of the web page

Don't for get to subscribe to the channel    / @teachyourselftestautomatio1271   if you got and value from this video and click the bell icon to get future videos as and when we release them

Please see video for live examples on the above    • How To Handle Links In Selenium Webdriver ...  

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

Many Thanks

Kevin Owasu Itoe

How To Handle Links In Selenium Webdriver | How To Click On A Link Using Selenium Webdriver
http://teachyourselftestautomation.com
--------------------------------------------------------------------------------------------------------
#testautomation #Selenium #Webdriver
--------------------------------------------------------------------------------------------------------
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: https://www.youtube.com/channel/UCbme...
--------------------------------------------------------------------------------------------------------
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...  
   • How To Handle Calendar In Selenium Webdriv...  
   • How To Manage The Synchronization In Selen...  
   • How To Handle Keyboard & Mouse Events Usin...  
   • How To Handle Dynamic Dropdown In Selenium...  
   • how to handle multiple windows in selenium...  
   • How To Handle Frames In Selenium Webdriver...  
   • How To Handle Links In Selenium Webdriver ...  
-------------------------------------------------------------------------------------------------------
What Wikipedia says about selenium: https://en.wikipedia.org/wiki/Seleniu...)
What Wikipedia says about test automation: https://en.wikipedia.org/wiki/Test_au...