Day #1 - Solution - Selenium Coding Challenge (Xpath & Dynamic Elements) - By Naveen AutomationLabs

  Рет қаралды 44,904

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Day #1 - Solution - Selenium Coding Challenge - By Naveen AutomationLabs
Git Repo for All Solutions :
github.com/nav...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
Java & Selenium:
naveenautomatio...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomatio...

Пікірлер: 78
@parthshah5418
@parthshah5418 3 жыл бұрын
Master at work! Learned basic concept of never hit same request multiple times when you can get everything in single request.
@preethaarun9697
@preethaarun9697 3 жыл бұрын
Another great learning. Thank You
@krina3111
@krina3111 3 жыл бұрын
very helpful....learning alot through your videos..
@skb7198
@skb7198 3 жыл бұрын
This is simply awesome... Thank you so much 💓
@ubaleashish
@ubaleashish 3 жыл бұрын
Hi Naveen, thanks for the solution. But you were expecting while loop with infinite condition.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
I mentioned you can break the loop after 20 secs.
@ubaleashish
@ubaleashish 3 жыл бұрын
@@naveenautomationlabs oh sorry I missed that. Thank u
@vijayppatel
@vijayppatel Жыл бұрын
can someone help: Appointment //h5[contains(@text(),'Appointment')] => NOT WORKING. Can NOT use Span tag. Multiple element of H5 with same Span except intertext of h5
@madhurpalsokar7790
@madhurpalsokar7790 3 жыл бұрын
Hi Naveen, I have also sent you my source code.. Just few lines of code but still doing the same job. Can you please check and let me know weather or not the code looks fine to you?
@sumiranraut8845
@sumiranraut8845 3 жыл бұрын
Can you paste it here bro
@antariksh2009
@antariksh2009 3 жыл бұрын
One thing that if condition is not needed i think.. because the while loop will automatically stops when it exceeds 20 count right?
@neelamdpatel
@neelamdpatel 3 жыл бұрын
truly xpath Genius, such a neat code . I like counter part for breaking loop.
@abhijeetbhatt9772
@abhijeetbhatt9772 3 жыл бұрын
learned many things in single video now waiting for other
@neelamdpatel
@neelamdpatel 3 жыл бұрын
I am glad i join your live training that planted a seed of creativity. But still needs to nurture little more for more creativity like you have :))
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
And you were one of the best we had in the last batch. Keep learning. Best of luck 👍
@neelamdpatel
@neelamdpatel 3 жыл бұрын
@@naveenautomationlabs Thank you Naveen.
@Puneetsushshivin0788
@Puneetsushshivin0788 3 жыл бұрын
Best series naveen please continue with these kind of playlist/challenges with actually helps everyone in building their logic and optimize their code.
@hackwithharsha5228
@hackwithharsha5228 3 жыл бұрын
Thanks Naveen, I forgot about optimisation and used custom xpath on rel attribute.. good learning !! Looking forward for more challenges..
@nishikantwairkar6866
@nishikantwairkar6866 3 жыл бұрын
Please continue this kind of series very educational
@The_Helping_Hand_1997
@The_Helping_Hand_1997 3 жыл бұрын
very educational video thnx for such awesome content waiting for more videos...
@amrutajadhav8455
@amrutajadhav8455 3 жыл бұрын
Really great series naveet ... We must appreciate.... Please keep posting more on this
@SANJAYKUMAR-jo7mj
@SANJAYKUMAR-jo7mj 3 жыл бұрын
Such a genius of traversing xpaths. You make learning such an easy task even for a fresher guy. Looking forward for more challenge rounds questions. Such a nice initiative by you for people who are new to automation to learn concepts.
@harshshiyani1011
@harshshiyani1011 3 жыл бұрын
Hello Naveen sir.. I love java but i don't know a single word about selenium. but the way you teaching, i watch 25 min. of video.. and i really enjoy becoz of your teaching style and i love java language.... Stay Home, Stay Safe...😷😷😷😷
@sarvpriya5534
@sarvpriya5534 3 жыл бұрын
I am trying to automate webwhatsapp and after first time QR code scan , I want to reuse this session in Firefox browser only. Reason being I want to run my test case in headless mode so I can't scan my QR code everytime. Only first time I want to run and scan without headless mode. For rest all times it should work as logged in user session only. It is working fine on chrome browser but not on Firefox. Please help in resolving this .
@venkatabalakrishnasadam5254
@venkatabalakrishnasadam5254 3 жыл бұрын
Your solution is awesome. But I have small doubt on ur question. I think need to print till 20 secs continues without sleep.
@anjalijha1598
@anjalijha1598 3 жыл бұрын
Thanks Naveen for the solutions ...I used the one xpath and gave the index of others but gave multiple sop for different 6 section ...but anyway ur solution is gem on top of all and waiting for next challenges
@MusiQ8dict
@MusiQ8dict 3 жыл бұрын
Thanks Naveen. I will first finish it and then chl solution. Please share solution of that kid 'Pandey'.. ! Har ek comment pe reply chipka raja tha k easiest hai.. Bande ne ek line ka code likha hai. Waiting to see his elegant code 😅
@sairam6703
@sairam6703 3 жыл бұрын
Great Naveen..learning a lot from you😍 pls keep posting challenge like this...
@azman12yasir
@azman12yasir 3 жыл бұрын
Thanks a lot for the superb explanation. To print Today's & This Year's data, I used the Xpath = "//div[@class='col1in' or @class='col2in']" to print all 6 values with the text.
@sachinwankhade4671
@sachinwankhade4671 3 жыл бұрын
Awesome naveen! You just converted challenge into ease. What a nit and clean code you have written! Keep posted such challenges. Learn many things from single vedio. Thanks for sharing such wonderful knowledge. ✌👍
@chiragbansod4003
@chiragbansod4003 3 жыл бұрын
I had got that generic locator the way you found. But failed to use findelements(); so i failed there and captured it separately using cssselector individually. Feeling like got out on 98
@naincyjainx
@naincyjainx 3 жыл бұрын
We can use this xpath = "//div[@class='sec-counter']//span[@class='rts-counter']" to print all 6 values as well.. @Naveen AutomationLabs
@shreekantdhade9319
@shreekantdhade9319 Жыл бұрын
Thanks ..it work..
@smitapawar4576
@smitapawar4576 3 жыл бұрын
Thank you so much sir, really nice solution and imp for me or other people...pls continue...and improve my skill.... really thanks a lot naveen sir.
@pallavishikhare3002
@pallavishikhare3002 3 жыл бұрын
You are seriously a Master. Thanks for all the knowledge sharing.
@PradipYogi59
@PradipYogi59 3 жыл бұрын
Automation Guru is back..... Awesome video.... everytime learn new things Thanks you so much
@sravankumar3826
@sravankumar3826 3 жыл бұрын
Thanks Naveen, I learned new things from this video. Excellent Series.
@vinothraja98
@vinothraja98 3 жыл бұрын
Great video, Thanks for giving real world scenarios for automation. It really helped me a lot.
@gurpreetsinghchhabra1997
@gurpreetsinghchhabra1997 3 жыл бұрын
Thanks Naveen!Really nice solution and explanation.Learnt something new.
@RetroRampageArcade
@RetroRampageArcade 3 жыл бұрын
Just one question this can be done without creating a list and stream ?
@satishkvs156
@satishkvs156 3 жыл бұрын
Simply Superb Video. Thank you so much SIR
@snehap2127
@snehap2127 3 жыл бұрын
Thats nice but can we have alternate for thread.sleep ?
@sagars3332
@sagars3332 3 жыл бұрын
Nice video to clear concepts of Staleelement Reference exception..
@pallavadhikary6613
@pallavadhikary6613 3 жыл бұрын
Please do continue these kind of series..... It will help more people. Thank you❤️
@poulomimitra8367
@poulomimitra8367 3 жыл бұрын
Thanks, although I was able to do it. But this was something new that I learnt
@abhisheksingh2291
@abhisheksingh2291 3 жыл бұрын
In just one video get to know so much of things.
@AmanSingh-gs4ue
@AmanSingh-gs4ue 3 жыл бұрын
Was eagerly waiting for the solution sir....thanks a ton.....please continue this series.
@amaraa42
@amaraa42 Жыл бұрын
Very good solution and good task thank you🎉
@praveendasare123
@praveendasare123 3 жыл бұрын
you are truly a virtual mentor, thanks for the detailed explanation
@sireeshabhagi5988
@sireeshabhagi5988 3 жыл бұрын
Thanks a lot !! Single video so much learning 🙂
@GilbertSBaidya
@GilbertSBaidya 3 жыл бұрын
Boss keep it up. Expecting more challenges..
@sushanttavrawala8394
@sushanttavrawala8394 3 жыл бұрын
Really great series Naveen, thank you very much....
@nkalgin
@nkalgin 2 жыл бұрын
Interesting case, but it might be more flexible, if we get the counters values not connected to Thread.sleep intervals, but synchronyously when new data will appear on counter.
@vimessi8226
@vimessi8226 3 жыл бұрын
logic for try out purpose : Find out how much numbers increased in current population after 20 sec (for example) when compared to the population before 20 seconds. Note: Population number oscillates between birth and death. So duplicate values will be there while capturing data.
@aayushpatel3360
@aayushpatel3360 3 жыл бұрын
Please Go on with this series. Brilliant approach sir
@megarohit456
@megarohit456 3 жыл бұрын
I used the datetime module of python for to keep the time check 20 secs ,is this is also right approach as i didnt find any issue with that what your view on this.... thanks for sharing the solution of challenge😇
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
keep it always simple and generic.
@anui5764
@anui5764 3 жыл бұрын
👍
@mandeep3445
@mandeep3445 3 жыл бұрын
Thank you!
@healthwithbhavesh6030
@healthwithbhavesh6030 3 жыл бұрын
Brilliant work.. Naveen ...
@shivamkadu5010
@shivamkadu5010 3 жыл бұрын
Nice generic solution....👌
@priyasharma7119
@priyasharma7119 3 жыл бұрын
Friends, can anyone help me with the solution for this challenge. I tried the code which Naveen sir has pushed in Github but I am getting the 'Null pointer exception' every time. I am trying in the Firefox , not in the Chrome. Thanks in advance :)
@The_Helping_Hand_1997
@The_Helping_Hand_1997 3 жыл бұрын
apply debugger at multiple places and check expected values
@nusrathafreen7314
@nusrathafreen7314 3 жыл бұрын
Ur my inspiration..
@Bbangaram-d9u
@Bbangaram-d9u 3 жыл бұрын
Thanks Naveen Sir 🙏
@ilavarasansriraman4140
@ilavarasansriraman4140 3 жыл бұрын
Good solution.. Current population xpath is giving 1 on 1 matching.. Why you are using findElements() method. We can directly use findElement() method right? .. It will also print the whole value of population.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
yeah, you can use FE also. But I dont want to create a new separate function to handle total population data. Same function "printPopulationData()" can be used for the same for single and multiple elements.
@sumitranjan2208
@sumitranjan2208 3 жыл бұрын
Great explanation Naveen
@jagrutichaugule1508
@jagrutichaugule1508 3 жыл бұрын
Nice solution and technique of using xpath. Related to 20 seconds conditions, the timmer is updating in milliseconds of time, and in your solution, you are waiting forcefully for 1 second to capture the next data. The solution which I shared with you in that for continuous 20 seconds the data is getting fetched. Can you check once that solution?
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
yes, we want to pause for 1 sec and fetch the data. Total time out = 20 secs.
@CodeAutomateHub
@CodeAutomateHub 3 жыл бұрын
Hi naveen, why did we use find elements in this to locate the elements
@jeyhunaliyev1765
@jeyhunaliyev1765 3 жыл бұрын
wow thats amazing i watch this video two times loved it they way u explained its just awesome new concept here "or" operator with "Xpath" thank you very much for this excellent session
@sainathvallampatla5135
@sainathvallampatla5135 3 жыл бұрын
Haha my bad I thought this is wrong procedure to use thread.sleep. I was expecting to implement something like Stopwatch class and Some Date classes to count 20 seconds. Thanks Naveen you gave me the solution to print the values dynamic from that site. I tried printing the total population I got same values on console till I end the execution
@rohangandhi8731
@rohangandhi8731 3 жыл бұрын
Thank you, Naveen Sir for the perfect Solution, I have one Question: Do we need to add break in if condition because in while loop it is already (count
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Yes that part you can remove.
How to Become Genius in XPath in Selenium  - Session -18
39:48
Naveen AutomationLabs
Рет қаралды 721 М.
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 129 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4 МЛН
Dynamic XPath in Selenium  using Different Approaches
28:12
Mukesh otwani
Рет қаралды 300 М.
Handle Hidden Drop Down Values / Auto Suggestions using DOM Trick | EventListener
7:55
Selenium: The Locator Trick They WON'T Tell You (Ace Your Interview!) #selenium #locators
13:41
Selenium Automation and Java learning with Srini
Рет қаралды 1,9 М.
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 129 МЛН