Selenium WebDriver Tutorial #19 - How to Print all Links of a Webpage

preview_player
Показать описание
In this Selenium Webdriver Tutorial we will learn how to print all links of a webpage in Selenium WebDriver.

In many scenarios you would be required to verify the presence of links or common element types on page, this technique will help you to find those webelements which have some common attributes.

Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials.

More tutorial playlists below:

❖ TRAININGS ON RCV ACADEMY PORTAL ❖

❖ FOLLOW US ON TWITTER ❖

❖ LIKE US ON FACEBOOK ❖

❖ OUR TUTORIAL WEBSITES ❖

❖ GET MY TRAININGS ON UDEMY ❖
#SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Рекомендации по теме
Комментарии
Автор

thank you so much for sharing your knowledge and experience, for me the best logic to print out all the links is using for each loop instead of for loop, it's much easier and straightforward, and for printing out the select options for a specific select element, we better use the getOptions method along with the Select object and then we use a for each loop (same logic as the first one). Good luck y'all

MUSTAPHA-QA
Автор

Good explanation. Thanks for your efforts

AnuragGupta-jjqc
Автор

Explanation is good but why unneccessary - Seeting up browser capabilities instead we have option like- Webdriver driver = New ChromeDriver();

nishantshekhar
Автор

How to find broken links and images in selenium webdriver?
Sir please make video.

nikitakambare
Автор

findElementsByTagname is not showing ...kindly help

ayazsabir
Автор

Hi Sir, for test automation how to create test cases using selenium Webdriver? Can you please explain and upload videos related to it .Thank you .

taniasaju
Автор

Hi, Is it possible to print all locators in a page? or print all text boxes locators in a page?

SureshKumar-nors
Автор

hello nic tutorials. But how do you close the modal popups (x).I couldn't do it. It would be great if you pls reply back.

mikemaddy
Автор

Hi sir,

After printing all links, How to click on a particular link (example.9th click)????
Please explain ???

chandrasheker
Автор

At the time of finding element, I import packages for both list and webelement but it's showing warning in yellow colour

vikasvicky
Автор

Can we print link of particular part of page

harshsoni
Автор

Sir kindly upload examples script in discription

leostar
Автор

Is there anyway to find all broken links from whole website? not from one page? please

ilyasyar
Автор

Hello Sir, I don't see the driver's method findElementByTagName(), I can see only findElement & findElements. Then I am writing the code and getting output. How I will get the method findElementByTagName() in a list. I am using the latest version of Selenium 4.4.0. Please reply will be great help.

purvidholakia
Автор

Hai if we open Google, doctors near me, in this how can we get all links in notepad

vutukuruamarnathreddy
Автор

I mean want to write path for all links

vutukuruamarnathreddy
Автор

In console window links are not showing

vikasvicky
Автор

how to find all in-depth links from a website

sujatawarke
Автор

Use less you are not telling the users about importing packages

Userutube-vtuw
Автор

It shows Expection in thread main java.lang.classcastexpection

vikasvicky