Interview Question: Find Broken Links in Selenium with Java Streams (Check 200 urls in just 20 secs)

Interview Question: Find Broken Links in Selenium with Java Streams (Check 200 urls in just 20 secs)

Naveen AutomationLabs

2 года назад

39,483 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Yogeshwar Nagpure
Yogeshwar Nagpure - 23.09.2023 15:05

I'm getting exception:- Cannot invoke "String.length()" because "spec* is Null... Please help me

Ответить
Linkan Biswal
Linkan Biswal - 11.08.2023 04:53

Not sure why so underrated this channel. I can say it’s the best content. Very neatly explained

Ответить
Srishti Sharma
Srishti Sharma - 26.07.2023 11:36

Hi Naveen, wanted to point out that i have used the same code still it is showing on the not broken list but not showing the broken link data . But it is showing the right count for the total links .

Ответить
shanth kumar
shanth kumar - 06.04.2023 06:40

this code doesn't handle malformed url exception and when url is null

Ответить
priya
priya - 19.01.2023 11:11

Sir how to find the broken link text and that status code... In scrpit

Ответить
Rashmi Konapanavar
Rashmi Konapanavar - 16.10.2022 21:00

Hey Naveen, Huge fan of you.
unable to find the link to download document of question answers

Ответить
Siva Chaitanya Reddy Sanivarapu
Siva Chaitanya Reddy Sanivarapu - 15.10.2022 13:17

Very useful

Ответить
Nitin Kumar
Nitin Kumar - 02.08.2022 22:33

@NaveenAutomationLabs, How to do the same with C# Selenium and NUnit.

Ответить
grace
grace - 12.07.2022 04:37

Your videos help us a lot, even more than some tutorial sites. Thanks a lot Naveen!!

Ответить
Ankit Shrivastava
Ankit Shrivastava - 25.05.2022 06:52

Nice Explained, please add more content for stream uses in java/selenium Thanks.

Ответить
Navathu Tejomai
Navathu Tejomai - 03.02.2022 21:34

Sir u r sooo underrated. I feel u should have minimum 1 million subscribers

Ответить
Navvya Naveli Nanda
Navvya Naveli Nanda - 17.11.2021 20:34

Parallel stream sequence stream....thanks

Ответить
Mohammad Alam
Mohammad Alam - 12.10.2021 05:08

This is amazing... :)

Ответить
Parita Patel
Parita Patel - 22.09.2021 11:11

Thank you so much Naveen for this Vidio , you are awesome.

Ответить
Shashibhushan
Shashibhushan - 26.08.2021 04:47

As per the selenium hq website. Seems this is not best practice... Any way looks simple and easy approach

Ответить
Ravikumar
Ravikumar - 15.08.2021 15:59

Never excepted this kind of programming thanks so much

Ответить
B3 Creative Vlogs
B3 Creative Vlogs - 10.08.2021 14:33

Thanks for posting Naveen its very useful…

Ответить
Soumyajit Nath
Soumyajit Nath - 01.08.2021 12:32

Amazing Naveen. Thanks a lot for explaining it so clearly. I tried the program today and I have a query - how to get the links in console as blue hyperlinks as seen in your video. I see the links in simple black color as it displays in eclipse console. help me on this.

Ответить
G N
G N - 29.07.2021 22:58

Is there anything like ParalleStream in C# ?

Ответить
Mihirkumar Patel
Mihirkumar Patel - 29.07.2021 19:37

This is really useful. Do you have any suggestion for same scenario but for WebdriverIO/NodeJs ?

Ответить
InsaneTraveller
InsaneTraveller - 29.07.2021 09:39

how will time will it take using multi threading thread pool executor? Is it going to be less? Can you show us please

Ответить
Ashutosh Singh
Ashutosh Singh - 28.07.2021 22:44

Superb Naveen 👌

Ответить
Czarkazm
Czarkazm - 28.07.2021 22:38

I have a question if you can make a video on it. I am taking a tic tac toe challenge for an interview. Each cell has a row and column and the xpath has to contain both. How can I create a list of numbers... int[ ] a and int b[ ] and put those into driver.findElement(By.xpath(beforeXpath + first + middleXpath + second + endXpath)).click();
Using Streams?

Ответить
Shanku Mondal
Shanku Mondal - 28.07.2021 20:21

The first approach was known to me . Great to know the second method (parallelStream ).Thanks

Ответить
Rajith kumar
Rajith kumar - 28.07.2021 12:09

Hi Naveen, I am not good at lamda's. Could you help how to write inside "foreach()" method in line 37 in normal steps.

Ответить
Chalta hai yaar
Chalta hai yaar - 28.07.2021 12:07

Sir, your telegram link is not working. It is showing that this invite link is expired...

Ответить
Piyush Mathpal
Piyush Mathpal - 28.07.2021 06:34

This iron man tune in the beginning feels awesome

Ответить
tulasi ram
tulasi ram - 28.07.2021 03:50

@Naveen: Excellent explanation. I have one suggestion here instead of checking for each link we can filter more by using whether the link is enabled or not first and then apply your logic. Because there is a chance of having disabled links also. With your logic it will be checking for disabled links as well. I have faced this challenge earlier so thought of sharing.

Ответить
Souvik Datta Choudhury
Souvik Datta Choudhury - 27.07.2021 23:20

🙏 awesome

Ответить
Shekhar Hanbar
Shekhar Hanbar - 27.07.2021 23:16

This is Great 👍

Ответить
Being Aman
Being Aman - 27.07.2021 22:06

Thanks for expanding our knowledge 😊

Ответить
Vikrant Raj
Vikrant Raj - 27.07.2021 21:51

Neatly explained. Can we create our own thread and execute these link like group of 50 link in each thread?

Ответить
sohelahmad khan
sohelahmad khan - 27.07.2021 21:45

Thanks

Ответить
Rajendra prasad
Rajendra prasad - 27.07.2021 21:43

Thnx Naveen

Ответить
GIRISH CHANDRA MOHARANA
GIRISH CHANDRA MOHARANA - 27.07.2021 21:40

Question is simple but you make solution easy.....Thanks Naveen...

Ответить
rukmani babu
rukmani babu - 27.07.2021 21:26

Thanks sir . Congrats for your certification

Ответить
Easha Mahapatra
Easha Mahapatra - 27.07.2021 21:23

👍👍

Ответить
It's My Good Life
It's My Good Life - 27.07.2021 21:23

👍

Ответить