Best series naveen please continue with these kind of playlist/challenges with actually helps everyone in building their logic and optimize their code.
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.
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.
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...😷😷😷😷
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
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. ✌👍
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.
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.
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
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.
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.
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
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 😅
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
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?
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😇
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 .
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?
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
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 :)
Master at work! Learned basic concept of never hit same request multiple times when you can get everything in single request.
Please continue this kind of series very educational
truly xpath Genius, such a neat code . I like counter part for breaking loop.
You are seriously a Master. Thanks for all the knowledge sharing.
Best series naveen please continue with these kind of playlist/challenges with actually helps everyone in building their logic and optimize their code.
learned many things in single video now waiting for other
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.
you are truly a virtual mentor, thanks for the detailed explanation
Simply Superb Video. Thank you so much SIR
Please Go on with this series. Brilliant approach sir
In just one video get to know so much of things.
Another great learning. Thank You
Nice video to clear concepts of Staleelement Reference exception..
Really great series naveet ... We must appreciate.... Please keep posting more on this
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.
very educational video thnx for such awesome content waiting for more videos...
Automation Guru is back..... Awesome video.... everytime learn new things
Thanks you so much
Thanks Naveen, I forgot about optimisation and used custom xpath on rel attribute.. good learning !! Looking forward for more challenges..
Thanks Naveen, I learned new things from this video. Excellent Series.
very helpful....learning alot through your videos..
Great video, Thanks for giving real world scenarios for automation. It really helped me a lot.
Really great series Naveen, thank you very much....
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 :))
And you were one of the best we had in the last batch. Keep learning. Best of luck 👍
@@naveenautomationlabs Thank you Naveen.
Brilliant work.. Naveen ...
Please do continue these kind of series..... It will help more people. Thank you❤️
Thanks Naveen!Really nice solution and explanation.Learnt something new.
Was eagerly waiting for the solution sir....thanks a ton.....please continue this series.
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...😷😷😷😷
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
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.
This is simply awesome... Thank you so much 💓
Thanks a lot !!
Single video so much learning 🙂
We can use this xpath = "//div[@class='sec-counter']//span[@class='rts-counter']" to print all 6 values as well..
@Naveen AutomationLabs
Thanks ..it work..
One thing that if condition is not needed i think.. because the while loop will automatically stops when it exceeds 20 count right?
Very good solution and good task thank you🎉
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. ✌👍
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.
Great Naveen..learning a lot from you😍 pls keep posting challenge like this...
Thanks Naveen Sir 🙏
Boss keep it up. Expecting more challenges..
Great explanation Naveen
Nice generic solution....👌
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
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.
Thanks, although I was able to do it. But this was something new that I learnt
Thats nice but can we have alternate for thread.sleep ?
Thank you!
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
Ur my inspiration..
Your solution is awesome. But I have small doubt on ur question. I think need to print till 20 secs continues without sleep.
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.
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.
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
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 😅
Hi naveen, why did we use find elements in this to locate the elements
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
Yes that part you can remove.
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?
Can you paste it here bro
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😇
keep it always simple and generic.
👍
Just one question this can be done without creating a list and stream ?
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 .
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?
yes, we want to pause for 1 sec and fetch the data. Total time out = 20 secs.
Hi Naveen, thanks for the solution. But you were expecting while loop with infinite condition.
I mentioned you can break the loop after 20 secs.
@@naveenautomationlabs oh sorry I missed that. Thank u
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
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 :)
apply debugger at multiple places and check expected values