No video

Selenium Framework for Beginners 7 | What is Page Object Model (POM) | How to create POM in Selenium

  Рет қаралды 223,970

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 208
@AC-vt1nq
@AC-vt1nq 3 жыл бұрын
Very impressive. Excellent job. Clear and simple to the point. I wish I knew about your series before
@RaghavPal
@RaghavPal 3 жыл бұрын
Thank you very much!
@iamthekd07
@iamthekd07 6 жыл бұрын
Its really so helpful to make my program more efficient and thank you again
@RaghavPal
@RaghavPal 6 жыл бұрын
Great to know this Kuldeep
@flirtuall78
@flirtuall78 6 ай бұрын
You are good in explaining the concepts in a simple fashion with practical examples. Thanks for sharing your knowledge.
@RaghavPal
@RaghavPal 6 ай бұрын
You are welcome Harsh
@sushmajnv5042
@sushmajnv5042 3 жыл бұрын
That is what I exactly looking for. Suddenly it shows, I always want to go with video, thank you for your effort. Video deserve like subscribe
@RaghavPal
@RaghavPal 3 жыл бұрын
You are welcome Sushma, thanks
@rotrose7531
@rotrose7531 4 жыл бұрын
Thank you very much, best selenium tutorials! You saved me thousands of manual work.
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome
@IfNotMe
@IfNotMe 2 жыл бұрын
Thank you, I appreciate your support to learners like me, this video helped me a lot.
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad to hear that!
@manishkannamoney7455
@manishkannamoney7455 Жыл бұрын
Best Explanation!
@RaghavPal
@RaghavPal Жыл бұрын
Glad it was helpful Manish
@anninn4685
@anninn4685 2 жыл бұрын
Thankyou so much because of you only my all doubts are cleared out. very nice explanation as name step by step.
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Anni
@truth_0013
@truth_0013 4 жыл бұрын
I am really enjoying all your video very detailed and easy to follow. Thank you Raghav .
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Laila
@suhasraikar
@suhasraikar 2 жыл бұрын
Excellent video, resolved all my queries w.r.t Page object model. Thanks!
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Suhas
@__ashoq_9469
@__ashoq_9469 2 ай бұрын
Thank you sir 🙏🏻
@RaghavPal
@RaghavPal 2 ай бұрын
Most welcome
@sairammadipalli2600
@sairammadipalli2600 2 жыл бұрын
I got clarity on POM thanks a lot
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Sairam
@baldygaming2226
@baldygaming2226 2 жыл бұрын
nice I suddently understood the coding in Java basic is king!
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks for watching
@charu1611
@charu1611 Жыл бұрын
Thank you for making series on this..... best explanation 👏 🙌
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Charushila
@earngaming9120
@earngaming9120 5 жыл бұрын
This video in the series is the one that got me to like n subscribe. I have fallen in love with POM
@RaghavPal
@RaghavPal 5 жыл бұрын
So happy to know this Samuel
@AnthonyInSanDiego
@AnthonyInSanDiego 3 жыл бұрын
Great step-by-step video! Cheers
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for watching Anthony
@yohanmallula3132
@yohanmallula3132 2 жыл бұрын
such a big tq very much sir
@RaghavPal
@RaghavPal 2 жыл бұрын
You are most welcome Yohan
@amanaesthetics4984
@amanaesthetics4984 2 жыл бұрын
Amazing stuff you made automation very easy ,🙂
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Aman
@jayashreednaik5372
@jayashreednaik5372 Жыл бұрын
explained clearly. thank you
@RaghavPal
@RaghavPal Жыл бұрын
Glad it was helpful Jayashree
@AmolShinde-ot4jb
@AmolShinde-ot4jb 2 жыл бұрын
Excellent
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Amol
@meditationandrelaxationmus741
@meditationandrelaxationmus741 2 жыл бұрын
Thanks helps in frameweork development
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Ashwini
@rotrose7531
@rotrose7531 5 жыл бұрын
Thank you very much, it is a really engaging experience to learn with you.
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Rose
@darwinnoah3329
@darwinnoah3329 3 жыл бұрын
I realize I'm quite off topic but do anybody know a good website to watch new series online ?
@angeldominik650
@angeldominik650 3 жыл бұрын
@Darwin Noah Lately I have been using Flixzone. Just google for it :)
@tristianbrixton7668
@tristianbrixton7668 3 жыл бұрын
@Angel Dominik Yea, have been using FlixZone for years myself :)
@darwinnoah3329
@darwinnoah3329 3 жыл бұрын
@Angel Dominik thank you, I signed up and it seems like a nice service =) Appreciate it!
@darsanas6741
@darsanas6741 5 жыл бұрын
beautifully explained. Thanks Raghav.
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Darsana
@shadabahmad7764
@shadabahmad7764 5 жыл бұрын
thanx for sharing this video
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Shadab
@sushanthnavale2499
@sushanthnavale2499 4 жыл бұрын
hey raghav thaks for making it so simple and i could learn it so easily.
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Sushanth
@arabindamohanty2190
@arabindamohanty2190 4 жыл бұрын
Really u make it simple to understand 👍
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad to hear that Arabinda
@MrTechwin
@MrTechwin 3 жыл бұрын
Extra Ordinary Explanation thank you so much😍👍
@RaghavPal
@RaghavPal 3 жыл бұрын
You are welcome 😊
@relaxsleep5148
@relaxsleep5148 2 жыл бұрын
Very well explained, thank you!!
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad it was helpful!
@niraj8202
@niraj8202 2 жыл бұрын
Thank you for this video. Your videos are very detailed and easy to follow.
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Niraj
@KavitaRawatWorld
@KavitaRawatWorld 11 ай бұрын
You made my concepts so easy. on UDemy when i was studying one course that was so lengthy (Rahul arora) here i can see you made it so easy for me.Thanks a lot
@RaghavPal
@RaghavPal 11 ай бұрын
Glad to know it helped Kavita
@macqueszeff3785
@macqueszeff3785 4 жыл бұрын
Hi Raghav, Stupendously explained without leaving a trace of doubt m learning automation thro ur videos as m migrating from manual testing, i have small doubt i heard from ma peers that industry now a days uses hybrid framework so if possible could you plz thro some light on what that exactly it is . . Thanks hell a lot n wish you many more success:-)
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Macques, There are diff types of frameworks based on the design approach. Most common are Keyword, Data-Driven and Hybrid. Keyword framework has functionalities coded into keywords. for example login functionality will be written in a function say login and will be exposed using keyword login. So whenever the user calls this keyword, it will run the login function and do login on the application. In Data-Driven, its the data that drives automation, So we have test data stored separately and we can add, delete update data w/o changing the framework. Based on our data the test runs accordingly. Hybrid is a mix of both approaches and is more popular and widely used. Here we have keywords for functionalities and action and also use external data.
@priyadarshiniMG
@priyadarshiniMG 3 жыл бұрын
Wonderfully explained...thanks much Raghav
@shubhamwakhare2125
@shubhamwakhare2125 3 жыл бұрын
Thanks
@RaghavPal
@RaghavPal 3 жыл бұрын
Welcome Shubham
@vipinsha
@vipinsha 3 жыл бұрын
Very nicely explained.
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Vipin
@AnilRaj-xj9gk
@AnilRaj-xj9gk 4 жыл бұрын
Thank you so much for explaining in detail
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Anil
@FazSaber
@FazSaber 5 жыл бұрын
Great video Raghav. Very helpful
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Paul
@karthikpatil9509
@karthikpatil9509 4 жыл бұрын
Hi Raghav,wonderful session.Thank you so much
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome Karthik
@vikasdesai1459
@vikasdesai1459 2 жыл бұрын
Thank you..useful info 🙏
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Vikas
@ramalakshmi5640
@ramalakshmi5640 3 жыл бұрын
Great explainaton
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Rama
@Arjunkumarp
@Arjunkumarp 4 жыл бұрын
Thank You Raghav !!
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome Arjun
@pavanmanny4523
@pavanmanny4523 2 жыл бұрын
Nice
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Pavan
@Mariam_PinkLotus
@Mariam_PinkLotus 2 жыл бұрын
16:50 love it!
@RaghavPal
@RaghavPal 2 жыл бұрын
thanks for watching
@Surahshots
@Surahshots 4 жыл бұрын
Very useful video
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad you liked it Sifar
@3aadel
@3aadel 3 жыл бұрын
Thank you so much
@RaghavPal
@RaghavPal 3 жыл бұрын
You're most welcome
@umamahesh4066
@umamahesh4066 5 жыл бұрын
Thank u so much raghav
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Uma
@snigshine4481
@snigshine4481 4 жыл бұрын
thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Snigdha
@AlanMartinez-yk7dm
@AlanMartinez-yk7dm 4 жыл бұрын
youre a beast bro thank you for your very easy lesson.currently updating my skills from uft and your videos flow very well.
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy to see this Alan
@divyangjani7600
@divyangjani7600 5 жыл бұрын
very good video!
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Divyang
@hamifargoogle7618
@hamifargoogle7618 2 жыл бұрын
Hi Raghav, I wish you have created new Maven Project for Page Object Model Tutorial.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Hamifar, can check this - kzfaq.info/sun/PLhW3qG5bs-L_8bwNnMHdJ1Wq5M0sUmpSH
@checkmate7780
@checkmate7780 4 жыл бұрын
Hi Raghav, I follow your tutorials, you explanations are really helpful. Please enhance the audio quality of the videos, it is very very low. I was watching testNG listeners video but I had to quit due to the poor audio quality. Please do something.
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Mimi, I will check on this. For now pls use headphones and make player volume to max
@sainiranjan40
@sainiranjan40 3 жыл бұрын
Hi Raghav, do you think I can implement similar POM concept on native iOS applications ?
@RaghavPal
@RaghavPal 3 жыл бұрын
Yes, you can Sai
@roshankarkera8642
@roshankarkera8642 4 жыл бұрын
good explanation but since you used static for driver, this will cause problem when running on Grid for parallel execution
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Roshan, yes, I will explain more on this in Grid tutorial
@scoobytailz557
@scoobytailz557 5 жыл бұрын
Hi Raghav is this selenium course + your java course enough to apply for QA job? Thank you.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, yes after going through these courses with practical hands-on you can start applying. I will suggest that you keep on doing hands-on and also keep on adding new skills. Will get all my courses here automationstepbystep.com/online-courses/
@user-vc7uu8nm7x
@user-vc7uu8nm7x Жыл бұрын
l+#$a easy.... we still have simple way of doing
@RaghavPal
@RaghavPal Жыл бұрын
thanks for watching
@dimplepal3583
@dimplepal3583 3 жыл бұрын
Hi Raghav, as per the best practice in selenium automation, which element locator should ideally be used and why?
@RaghavPal
@RaghavPal 3 жыл бұрын
You can go with either xpath with id or css, based on what is available
@onkarbhosale2727
@onkarbhosale2727 5 жыл бұрын
Thanks soo much ,can you plz copy code and paste in description for revision.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, YOu can get code from -. github.com/Raghav-Pal/SeleniumJavaFramework1
@sailishmanandhar4573
@sailishmanandhar4573 4 жыл бұрын
I am a little confused. In this example there is only one web element for text box. What about when there are more text boxes. Do I need separate functions for each textbox element?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sailish, Basically we need to create a locator for every object we need to interact on the web page in POM.
@sailishmanandhar4573
@sailishmanandhar4573 4 жыл бұрын
Thank you. It was really helpful :)
@mallikarjunaswamyb3765
@mallikarjunaswamyb3765 4 жыл бұрын
Hi Ragav, with respect to (18 min 15 sec ) in the video. I have seen that you have used static webelement . will it work for parallel execution ??? during parallel , it kind of conflict right ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, yes, you can check on that. I did not try to run in parallel
@aidilfarhan3935
@aidilfarhan3935 2 жыл бұрын
Hi Raghav, do you have to create a new chromedriver for each test case?
@RaghavPal
@RaghavPal 2 жыл бұрын
No Aidil, not needed and will not be efficient
@MIKEYSREVIEWS
@MIKEYSREVIEWS 5 жыл бұрын
When I remove "public static void main" run as will not have Java Application.
@RaghavPal
@RaghavPal 5 жыл бұрын
You should have main function somewhere. Main is the starting point for a java compiler
@MIKEYSREVIEWS
@MIKEYSREVIEWS 5 жыл бұрын
Your right I figured it out before. At least I learned something new. Thanks again.
@Rubaanisingh1112
@Rubaanisingh1112 4 жыл бұрын
You still can run the code after removing main but you have to use testng for this , which is way better than main
@anirudhprayaga5588
@anirudhprayaga5588 3 жыл бұрын
Hi Raghav, thank you so much for this video and others in this series. I have a doubt, why did you have WebDriver reference to be static and why did you have the method defined as static in lines 12, 19 at 13:55. Please let me know.
@anirudhprayaga5588
@anirudhprayaga5588 3 жыл бұрын
Any advantages of using static over not using it in the framework?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Anirudh, you can call static methods without creating objects first.
@anirudhprayaga5588
@anirudhprayaga5588 3 жыл бұрын
@@RaghavPal Thanks for the reply Raghav. I kind of guessed that, but was having a different Question related. If we have a Baseclass of a test set that we configure our webdriver reference in, and we use this webdriver reference in other test classes of the set where we extend the base class and hence the driver is available to all the test classes as well and we do not need to create the object for that webdriver reference in other test classes too. So is there any advantage of having static specified to the Webdriver object as we don't need to create an Object of it in child classes?
@RaghavPal
@RaghavPal 3 жыл бұрын
In general, when we create frameworks we need to use the same driver instance at diff places and for that its best to keep it static
@anirudhprayaga5588
@anirudhprayaga5588 3 жыл бұрын
@@RaghavPal OK thanks Raghav
@shivushankar4954
@shivushankar4954 3 жыл бұрын
when we want to run pom related packages we should mandatorly create the maven project in eclipse?
@RaghavPal
@RaghavPal 3 жыл бұрын
HI Shivu, yes
@shivushankar4954
@shivushankar4954 3 жыл бұрын
@@RaghavPal Thank you sir
@WorkWork-ed4vc
@WorkWork-ed4vc 2 жыл бұрын
Wouldn't it be nice if you create a new Maven Project for PageObjectModel for better undersating of your audience?
@RaghavPal
@RaghavPal 2 жыл бұрын
Sure, in new tutorials I will do it
@myWayIn619
@myWayIn619 3 жыл бұрын
Raghav Pal, what would you recommend if I want to use a javascript method with POM?¨
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Frank, if you want to use javascript executor to handle some dynamic element, you can do that.
@ashwinnair3782
@ashwinnair3782 3 жыл бұрын
Do we really need that ' default package' in that?
@RaghavPal
@RaghavPal 3 жыл бұрын
will check again Ashwin, have you tried
@prashantvaghela3337
@prashantvaghela3337 2 жыл бұрын
First of all, thank you very much for creating these videos Raghav sir. I just have one concern about Flow-based testing with the POM framework. For example, we have created the Page Objects method for Sign up, log in, Browse Items Page, Check out page, payment page and etc. Now I would like to execute the entire flow as one group. How can we achieve this using Page Object Modal? I have been looking for the answer for quite a while. I am confident that you will be able to help me with it. Thank you in advance Raghav Sir
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Prashant, here we keep the objects and methods in specific page classes and to create a test or flow we can call the methods from required classes
@prashantvaghela3337
@prashantvaghela3337 2 жыл бұрын
Make sense. Thank you sir
@rahulsikarwar6349
@rahulsikarwar6349 4 жыл бұрын
Hi Raghav, Just wanted to ask if I can use extend keyword instead of importing the class ?
@RaghavPal
@RaghavPal 4 жыл бұрын
You will be doing inheritance. You can do.
@udayak5864
@udayak5864 6 жыл бұрын
Hi Please do a video for Page Factory Model. Thx in advance
@RaghavPal
@RaghavPal 6 жыл бұрын
Sure Udaya, will do it soon.
@udayak5864
@udayak5864 6 жыл бұрын
Thx man :)
@ksdnsdkumar1375
@ksdnsdkumar1375 2 жыл бұрын
Why are you not using "By" class to store locators ?
@RaghavPal
@RaghavPal 2 жыл бұрын
Can do that, I might have explained that in some future videos
@testera8965
@testera8965 3 жыл бұрын
Hi , what could be the reason that something is working in Chrome but not in firefox
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, it can be due to speed, objects etc
@Rubaanisingh1112
@Rubaanisingh1112 4 жыл бұрын
hey, why have you created methods without void i.e. with return types..,, what is the benefit of this, how would it help
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Tanu, actually it all depends on your needs. In case you want to get some return, you can do that.
@9313516824
@9313516824 5 жыл бұрын
sir what happened if i don't mention Webelement element as null. Only write Webelement element;
@RaghavPal
@RaghavPal 5 жыл бұрын
That should work as well Pabitra, pls try.
@yuriyartamonov9881
@yuriyartamonov9881 4 жыл бұрын
You can easily write PageObjects in IntelliJ IDEA with plugin: blog.jetbrains.com/idea/2020/03/intellij-idea-2020-1-selenium-support/
@RaghavPal
@RaghavPal 4 жыл бұрын
Thanks for the inputs Yuriy
@mky8838
@mky8838 4 жыл бұрын
Hello, it 's possible to automate Oracle HCM with selenium java ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Selenium can work only on browser
@mky8838
@mky8838 4 жыл бұрын
@@RaghavPal thank you, Besides, I have another question. do you do certifications in automation? I would like to have information about it.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, I teach for corporates and groups. Can do certification programs if required and my schedule matches
@user-le4jy6xx1f
@user-le4jy6xx1f Жыл бұрын
unable to run program showing erroe
@RaghavPal
@RaghavPal Жыл бұрын
Please send details and error message
@deepakMCA2009knit
@deepakMCA2009knit 5 жыл бұрын
I confused between the full form of POM. Is it Project Object Model or Page Object Model, because you referred it project object model in previous session of pom.xml
@RaghavPal
@RaghavPal 5 жыл бұрын
its PAGE OBJECT MODEL
@ranjithittyipe9469
@ranjithittyipe9469 4 жыл бұрын
Where are you defining as a Chrome Driver?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Ranjith, I do not recall and will have to watch the video again. It may be done in the previous one, Hope you have watched all the earlier sessions on this playlist
@ranjithittyipe9469
@ranjithittyipe9469 3 жыл бұрын
@@RaghavPal Wow Raghav, I never expected you to reply back. I got it sorted. You are excellent. God Bless
@risnarinuz3357
@risnarinuz3357 3 жыл бұрын
Is there anyway to contact you sir ? I have got some doubhts
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Risna, can let me know here
@haseebperspective
@haseebperspective 2 жыл бұрын
Can i get this code?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Haseeb, can find here github.com/Raghav-Pal/SeleniumJavaFramework1
@sreebellamkonda4887
@sreebellamkonda4887 3 жыл бұрын
Hi Raghav thankx for the session , a small request from my end can u provide me a properly working POM project as i want to implement in my project can u send me or provide me the file .
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sree, you can check this projects repo here github.com/Raghav-Pal/SeleniumJavaFramework1
@teddykiller8421
@teddykiller8421 3 жыл бұрын
Hi ragav can you share me Jbehave ... classes
@RaghavPal
@RaghavPal 3 жыл бұрын
Not yet created Purushotham
@teddykiller8421
@teddykiller8421 3 жыл бұрын
@@RaghavPal can i expect that course from your side
@RaghavPal
@RaghavPal 3 жыл бұрын
Yes, I will plan
@vanithand853
@vanithand853 2 жыл бұрын
This is bit difficult to understand, especially JAVA code :(
@RaghavPal
@RaghavPal 2 жыл бұрын
I will try to make it more easier
@jyotsanarajput3267
@jyotsanarajput3267 4 жыл бұрын
Bravo brilliant sir may I know your email I’d please
@RaghavPal
@RaghavPal 4 жыл бұрын
can email at raghav.qna@gmail.com, but replies to emails are delayed, You can get faster response here. Can check tutorials here - automationstepbystep.com/
@dachenikhilkumar1
@dachenikhilkumar1 5 жыл бұрын
Hi Raghav , i have done the same and below is my code package test; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import pages.GoogleSearchPage; public class GoogleSearch { private static WebDriver driver = null; public static void main(String[] args) throws InterruptedException { googleSearch(); } public static void googleSearch() throws InterruptedException{ driver = new ChromeDriver(); //goto google.com driver.get("google.com"); //enter text in search text box //driver.findElement(By.name("q")).sendKeys("book my show"); GoogleSearchPage.textbox_search(driver).sendKeys("Automation Step by Step"); Thread.sleep(5000); //click on search button //driver.findElement(By.name("btnk")).click(); //driver.findElement(By.name("btnk")).sendKeys(Keys.RETURN); GoogleSearchPage.button_search(driver).sendKeys(Keys.RETURN); driver.close(); System.out.println("Test Completed"); } } error: Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 20487 Only local connections are allowed. Jan 18, 2019 11:40:17 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"name","selector":"btnk"} (Session info: chrome=71.0.3578.98) (Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds For documentation on this error, please visit: www.seleniumhq.org/exceptions/no_such_element.html Can you please help after google page gets open and Automation step by step Text is entered in the search box i am unable to perform the return operation please help me out
@dachenikhilkumar1
@dachenikhilkumar1 5 жыл бұрын
and this is the elements i can see after inspecting the google search button
@dachenikhilkumar1
@dachenikhilkumar1 5 жыл бұрын
my chrome version is : Version 71.0.3578.98 (Official Build) (64-bit)
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Nikhildache, I see you have already commented the line where you are hitting the button btnK. Usually it happens as when you write something on the search box, an auto-suggestion drop-down appears and overlaps over the search button. and search button becomes invisible. So after entering text you can either press ESC key to close auto-suggestion and then click btnK or directly hit ENTER key and skip btnk click
@dachenikhilkumar1
@dachenikhilkumar1 5 жыл бұрын
@@RaghavPal Hi Raghav thanks for the reply.
@binaykrai5784
@binaykrai5784 6 жыл бұрын
Hi Sir, How to do backend/server side applications testing
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Binay, will depend on what server and what exactly you are looking to test. You might want to look into ETL for DB testing. Also check this www.softwaretestinghelp.com/how-to-perform-backend-testing/
@Deniz-ss1sv
@Deniz-ss1sv 3 жыл бұрын
:)
@breezyHaya
@breezyHaya 5 жыл бұрын
Halau!
@breezyHaya
@breezyHaya 5 жыл бұрын
Vi are learning, viii viil see
@ashishdarekar5383
@ashishdarekar5383 4 жыл бұрын
I still continued ..watching ur video ....but now sure .....NOT GOOD AT ALL....
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ashish, pls let me know where did you face issues
@harshadaborade5712
@harshadaborade5712 17 күн бұрын
Hello sir ,For button click i am getting error such as org.openqa.selenium.NoSuchElementException:
@RaghavPal
@RaghavPal 17 күн бұрын
Harshada The `org.openqa.selenium.NoSuchElementException` error in Selenium typically occurs when the script is unable to locate the element you are trying to interact with. Here are a few common reasons and solutions for this issue: 1. Element Not Present: The element might not be present in the DOM at the time the script is trying to interact with it. You can use `WebDriverWait` to wait until the element is present. ```java WebDriverWait wait = new WebDriverWait(driver, 10); WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("yourButtonId"))); element.click(); ``` 2. Incorrect Locator: Ensure that the locator you are using is correct. Double-check the element's ID, class, name, or other attributes. ```java WebElement element = driver.findElement(By.id("yourButtonId")); element.click(); ``` 3. Element in iFrame: If the element is inside an , you need to switch to the first. ```java driver.switchTo().frame("frameName"); WebElement element = driver.findElement(By.id("yourButtonId")); element.click(); driver.switchTo().defaultContent(); ``` 4. Dynamic Elements: If the element's attributes change dynamically, you might need to use a more robust locator strategy, such as XPath. ```java WebElement element = driver.findElement(By.xpath("//button[text()='Click Me']")); element.click(); ``` 5. Page Load Issues: Ensure the page has fully loaded before attempting to interact with elements. ```java driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS); ``` If you continue to face issues, wrapping your code in a try-catch block can help handle exceptions gracefully --
@harshadaborade5712
@harshadaborade5712 17 күн бұрын
@@RaghavPal yes, when we enter the text inside google search box ,it pops up with auto suggestions due to which the search button gets hidden ,for that I had also used keys.RETURN ,But still issue is persist
@RaghavPal
@RaghavPal 16 күн бұрын
try using Escape key
Selenium Framework for Beginners 8 | How to implement POM in Selenium Java
17:38
Automation Step by Step
Рет қаралды 82 М.
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 52 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 23 МЛН
Мы сделали гигантские сухарики!  #большаяеда
00:44
Selenium Framework for Beginners 6 | How to create FIRST SELENIUM TEST in Java
15:38
Page Object Model in Selenium Webdriver Step by Step Guide
31:21
Mukesh otwani
Рет қаралды 466 М.
Page Object Model & Log4J
1:11:37
SDET- QA
Рет қаралды 195 М.
Explain Page Object Model - POM Architecture in Selenium - Interview Question
46:44
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00