Selenium Tutorial Series | Part 20 | Working with Links - Advanced concepts | Tamil

  Рет қаралды 30,201

Learn Automation Online

Learn Automation Online

Күн бұрын

Hyperlinks are one of the basic and very common elements to be interacted with. We have already seen one video about links but that is a very basic operation. In this video, we are going to deal with some complex operations.
What will we learn:
-------------------------------
1. Find out where the link will be redirected without clicking the link
2. Verify if a link is broken or not
3. Accessing an element which is removed from the DOM.
4. Stale Element reference Exception.
5. Navigate to method
6. Difference between get and navigate to methods
7. Find the total number of links in a page
Best way to reach me (replies will be faster): KZbin comment section
Also, you can follow me on Facebook and Instagram.
Facebook: bit.ly/2TqPlis
Instagram: bit.ly/2Ez36rH
#Selenium #Java #Hyperlinks #Advanced #LearnAutomationOnline

Пікірлер: 58
@thala441
@thala441 4 жыл бұрын
Vera level bro.. This is absolutely mind blowing.. No one can explain like this with total care...
@prabakarm5025
@prabakarm5025 4 жыл бұрын
Really mass bro Hats off your way approach especially explain line by line set out
@lakshmanan9754
@lakshmanan9754 3 жыл бұрын
Thanks for posting such useful videos bro. I have no idea about selenium before, now it looks easy for me because of you. Thanks again
@kavipriyarajapandi2241
@kavipriyarajapandi2241 4 жыл бұрын
Awesome explanation no doubt sir ...
@sarathr4495
@sarathr4495 Жыл бұрын
Your explanation is good sir 👍
@hariprasath3219
@hariprasath3219 3 жыл бұрын
super explanation sir thank you alot................
@sangavisaravanan996
@sangavisaravanan996 3 ай бұрын
I got 47 No. Of links when i used tagName"a". I dont know why.. And then in href, i got jsessionid as well
@solosoul9600
@solosoul9600 5 жыл бұрын
Hi , There is only 5 link( 1)Go to Home Page 2)Find where am supposed to go without clicking me? 3)Verify am I broken? 4)Go to Home Page 5)How many links are available in this page?) but how it is showing total number of link as 6?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
The logo is there right, every site will embed an anchor tag. So technically, we have 5 links and the logo link, hence the count is showing as 6. Very good observation. ☺️
@solosoul9600
@solosoul9600 5 жыл бұрын
@@LearnAutomationOnline Oh yeah got it.Thanks
@mokkachannal6109
@mokkachannal6109 Жыл бұрын
Testleaf logo ah bro ????
@VigneshL-z5p
@VigneshL-z5p 7 ай бұрын
I have doubt in hyperlinks. For navigating to a URL, copying the URL text is fine, but some URLs may not have the same descriptive text, such as 'click here.' For that URLs, how to fetch the element
@reetajohn9427
@reetajohn9427 Жыл бұрын
Amazing tutorial ji
@niyaram7578
@niyaram7578 3 жыл бұрын
Semma explanation..am very late watching this video in 2021.. :( I wasted my 3 + year ... ithanalaa enga eruthinga...? My confidence level got increased will definitely let know after getting job. One question I should remember all the codes?? cause I am practicing all when watching is this necessary to remember all the code before interview?
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
If u r practicing daily, remembering the code will not be a problem.
@telugucricketanalysis247
@telugucricketanalysis247 4 жыл бұрын
Sir Can u make different video for the broken links it so complicated . The one method u have told is nice but their is one more method can you tell it . please.
@suriya285
@suriya285 9 ай бұрын
Now,I am getting total links as 47.What is the difference between total links in the webpage and total layout links? because I am getting same o/p for both
@kalaiselvichandrakasu2780
@kalaiselvichandrakasu2780 6 ай бұрын
Hi bro ..........first find panna elements ah en page refresh anadhum use pann mudila ..........id ,name ,xpath edhume mara poradhu illa but still en apadi ........... Same code nama n no of times run pannum podhu results varudhe .......en
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
I have a doubt in Stale element reference exception. The homePageLink web element hasn't changed anythin. We are just changing it to homePageLink1 & findin it again & usin it. Logically there is no meaning in this exception error. Also because of this error if we want to use the same webelement 'n' number of times in our code then we need to find it 'n' number of times & use it. This will be big burden right?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
If you observe the video, clearly, the page has been reloaded or moved to some other page. If this happens, the elements attached to the dom will be deleted and reattached. As a result, the elements already found are throwing stale element exception. If the page is not reloaded, then we can use the same element.
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
@@LearnAutomationOnline Yes the page was reloaded but as you mentioned the dom will be deleted and reattached (There won't be any change) then why there is a need to re-find the web element again is my query. If there is any change then to re-find is valid.
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Consider this like a person gajini Surya. Even though you both have met before, after fifteen minutes, you have to remind him that it's you. Same way, after refreshing, we have to again say who we are by finding the element again. What's already there won't work. While getting reattached, all older property won't work. Hope it's clear
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
@@LearnAutomationOnline got it thanks
@christinamary3193
@christinamary3193 4 жыл бұрын
When there is no element found in the webpage when it is loaded then it is "No Such Element Exception" When you try to use the old element to find , after navigating or refreshing the webpage then it throws "Stale element reference exception". Am i right?
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Yes.
@ilavarasansriraman4140
@ilavarasansriraman4140 3 жыл бұрын
Perfect
@meenavinothviyanmivan
@meenavinothviyanmivan 2 жыл бұрын
Good one
@hashirhasmy1042
@hashirhasmy1042 2 жыл бұрын
completed.anna enakku antha exception adikkelleye. adu ella neramum adikkadha
@venkatesh5411
@venkatesh5411 2 жыл бұрын
thanks na♥
@jandiva3907
@jandiva3907 2 жыл бұрын
Sir what is the difference between stale elem exception and no such element exception
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
Selenium Exceptions kzbin.info/aero/PLLS0D9-W-1dkungTWXW7Odgrpj4JgFI0m it’s explained in this video
@dhivyaakumar
@dhivyaakumar 3 жыл бұрын
Hi ... I got this stale element exception when I tried to click multiple checkboxes in the amazon screen... I also put this in a loop as suggested in stackoverflow, but still I'm getting this exception... Can u help pls
@vijiviji-jq4wr
@vijiviji-jq4wr 5 жыл бұрын
Hi Arul, We are clicking on Go to homepage link.. Will it take 1st link or 4th one.. As both are having Same properties
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Selenium will always perform the operation on the first matching locators. That's why, we are using ID as it's the best locator.
@vijiviji-jq4wr
@vijiviji-jq4wr 5 жыл бұрын
Thanks Arul.. Got it.. All your videos are really good.. If I want to perform action on second match.. is there any other way?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
We have to use xpath in that case. Have posted an in-depth video on how to write xpath, please refer that as well for better understanding. Glad you find the videos useful. 😊
@blackman-zi2fg
@blackman-zi2fg Жыл бұрын
Brother how to find linktext
@herdreamlife6
@herdreamlife6 Жыл бұрын
how to count no of links present inside a layout? sir pls help me
@dhivyaakumar
@dhivyaakumar Жыл бұрын
Click on the layout link and then use the List linkGrid = driver.findElements(By.tagName("a")); System.out.println("Total links in grid are " + linkGrid.size());
@sugumarduraiarj2286
@sugumarduraiarj2286 4 жыл бұрын
I got StaleElementReferenceException exception while click the homepagelink.click.How can i sove this
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
kzbin.info/www/bejne/h5LWhH2YbbZ3r7s watch this
@kalaiselvichandrakasu2780
@kalaiselvichandrakasu2780 Жыл бұрын
There are only five links but the size is returning 6 .....y is it so
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
The logo image is also a link
@srinidhiswaminathan7851
@srinidhiswaminathan7851 2 жыл бұрын
Hi Sir, there are only 5 links in the page..but system .println is showing as '6'. can you explain
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
The logo of that page is also a link.
@SuriyaSparrow
@SuriyaSparrow 2 жыл бұрын
Bro intha screen shot and screen record atha pathila konjam sollunga Broo
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
Refer selenium interview questions playlist
@SuriyaSparrow
@SuriyaSparrow 2 жыл бұрын
@@LearnAutomationOnline okay Bro Thanksss ❤️❤️
@SuriyaSparrow
@SuriyaSparrow 2 жыл бұрын
@@LearnAutomationOnline really enjoying your video by learning
@gothandaramanr579
@gothandaramanr579 2 жыл бұрын
Bro, broken image page load agala, it's shows home page only
@sarathr4495
@sarathr4495 Жыл бұрын
It won't show . Only status code in title is we get
@mitiskaagrawal3067
@mitiskaagrawal3067 5 жыл бұрын
Hi Arul, Can you please help me with one of my question. I followed this video and tried creating class and did everything you did , i used driver.get() initially to open the webpage and i was able to do everything you did, later on used navigation to navigate. Is there any specific reason why you used driver.navigate.to - initially to load the webpage ?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
driver.navigate().to() method is an alternative for driver.get() . If we have to refresh, go back and forward in the web browser, then we have to use navigate. I'm not sure whether I'm doing refresh or going back and forth in this video may be that's why. Even if not, we can use navigate.to . There's an in-depth video on difference between get and navigate. Kindly check that as well.
@mitiskaagrawal3067
@mitiskaagrawal3067 5 жыл бұрын
@@LearnAutomationOnline Thank you very much.. will check that video . Your videos and explanations are crystal clear, you are doing a great job !
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Thanks a lot Mitiska. 😊. Link of that video, incase you need. kzbin.info/www/bejne/f2q4hHV-i615aqc
@Vijayakumar-xx3vy
@Vijayakumar-xx3vy 4 жыл бұрын
Hi,how to find all broken images?
@krishna3202
@krishna3202 10 ай бұрын
List allImages= driver.findElements(By.tagName("img")); for (WebElement myWebelement : allImages) { if(myWebelement.getAttribute("naturalWidth").equals("0")) { System.out.println("There is borken image" + myWebelement); }else { System.out.println("There is not broken images in this page"); } }
Selenium Tutorial Series | Part 21 | Working with Dynamic Tables | Tamil
44:38
Learn Automation Online
Рет қаралды 49 М.
Must Know JAVA concepts | Selenium Automation | PART - 1 | Working with Databases
26:13
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 12 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
Alert | Selenium தமிழ் | Selenium Tamil Tutorial
20:20
LetCode with Koushik
Рет қаралды 20 М.
Selenium Tutorial Series | Part 18 | Uploading a file| Tamil
21:54
Learn Automation Online
Рет қаралды 39 М.
Selenium Tutorial Series | Part 16 | Auto completion | Tamil
19:59
Learn Automation Online
Рет қаралды 36 М.
Mystery of StaleElementReferenceException in Selenium WebDriver
18:10
Naveen AutomationLabs
Рет қаралды 50 М.
Implicit  Wait | Selenium தமிழ் | Selenium Tamil Tutorial
9:59
LetCode with Koushik
Рет қаралды 21 М.
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 12 МЛН