Complete Page Object Model (POM) using Page Factory in Selenium

  Рет қаралды 276,100

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 488
@valeriisynenko1893
@valeriisynenko1893 7 жыл бұрын
If I could put more than 1 "like", I would do it!
@CHUNCHUNMARU971
@CHUNCHUNMARU971 Жыл бұрын
Chill got u covered after 5 years
@evadimitrova3216
@evadimitrova3216 5 жыл бұрын
I am unemployed manual tester and they are not trainings here that give you the knowledge and prepare you for the career in automation, just learning from videos on KZbin like yours. Actually most that I like are yours and I think I am advancing. Thank you
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thats Great Eva.. Never stop learning.. Keep in touch and let me know if any help required from my side.
@sathisshs3782
@sathisshs3782 9 жыл бұрын
Thanks Mukesh for your detailed video. I have taken couple paid selenium courses but none was as clear as you explained. I really appreciate and value your time in making these free videos. Keep Rocking Champ :)
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+sathissh s Hi Sathissh, your comment made my day :) Thank you keep visiting.
@SaikiranPalugula
@SaikiranPalugula 9 жыл бұрын
Hi Mukesh, I've been watching all your videos for quite a while. All of them are very informative and i've learned a lot from your videos. Kindly keep posting the videos like this. Thanks a lot for your help:-)
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Saikiran Palugula Thanks SaiKiran yes sure I have so many topics in Pipeline will upload soon. Happy weekend
@zafirahaishaarish517
@zafirahaishaarish517 9 жыл бұрын
Hi Mukesh Thank you so much for this video. This is very helpful and you explained it very easy and clear way. Now I want to watch all your videos. Also, your english is very fluent and clear.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Borna Hossain Thanks Borna.. Let me know if any help required..
@kozakmos3434
@kozakmos3434 9 жыл бұрын
Hi Mukesh from Turkey !!! Than you for all videos !!!
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+karacan kayar Thank you Karacan :)
@lilylikelily
@lilylikelily 5 жыл бұрын
You are a great teacher, I really appreciate how you take time and explains every steps in details !! Thank you
@Bits8byte
@Bits8byte 8 жыл бұрын
Great video Mukesh. I am self learning Selenium WebDriver Automation. This was helpful. Thanks.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hey Jon Gald to know you liked. Keep visiting.
@Nandhis
@Nandhis 8 жыл бұрын
This is covering scalability as well. Good video.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Nandhis I am glad it helped you.
@jinceyj4424
@jinceyj4424 4 жыл бұрын
the best tutorial in youtube... thanks a lot for the help Mukesh. :)
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thank you Jincy
@saurabhparasar21
@saurabhparasar21 9 жыл бұрын
Hi Mukesh, All the videos are awesome and very very helpful. Thanks for sharing these :)
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+saurabh Pandey Thanks Saurabh panday keep visiting :)
@KuldeepKumar-wu7xx
@KuldeepKumar-wu7xx 8 жыл бұрын
Very well consolidated..Thanks a lot Mukesh for sharing...!!
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Keep visiting Kuldeep.
@purushothamamb6146
@purushothamamb6146 9 жыл бұрын
HI mukesh , Thanks a lot for this video i got so much knowledge through your videos.Thanks for the video on Page Factory really help full.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Purushothama MB Hi Purushothama Thank you. I am glad that it helped you.
@shahinahmed7710
@shahinahmed7710 8 жыл бұрын
Excellent video tutorial !!! Everything is explained in details!! Keep it up man.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Shahin I am glad it helped.
@AndrewKramerenko
@AndrewKramerenko 8 жыл бұрын
Thank you, Mukesh, you've saved my life!
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Great man :) Cheers
@vamshinaroju
@vamshinaroju 8 жыл бұрын
Hi mukesh , Its a very good session .will help us lot in improving to learn automation.Thanks for good session .
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Vamshi, I am glad to know you liked it. Thanks you
@GoUpstairs
@GoUpstairs 6 жыл бұрын
mate! u r a great teacher! keep on doing this! greetings from Argentina
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
😀 Ur comments made my day..
@illusion7223
@illusion7223 3 жыл бұрын
Thank you so much for this video....It helped me immensely....All my confusions resolved...
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thank you Maya. Glad it helped.
@bharath9009
@bharath9009 8 жыл бұрын
Fantastic video, 5Star. Helped me a lot to work on real time project and crack interviews
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Great Mate :) Cheers
@FYPNLP
@FYPNLP 7 жыл бұрын
Great tutorial video. You made what looked like super complex concepts very easy to understand.
@Manojkumar-yi5cs
@Manojkumar-yi5cs 8 жыл бұрын
It 's very useful mukesh. Keep posting videos like this.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Manoj :)
@kirantherise1
@kirantherise1 8 жыл бұрын
Thanks Mukesh, Got learn new concept Page Factory...
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Welcome Kiran. happy weekend.
@MadirajuKChaitanya
@MadirajuKChaitanya 9 жыл бұрын
Hi Mukesh Ji,Thanks a lot for sharing this video with us.It was very informative(Please sharing the code created from this video,if possible,from Google Drive...or others).Please continue to share your experience.All the Best and MAY GOD BLESS YOU!!!.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Madiraju K Chaitanya Hi Chaitanya ji, I will update the code in blog tomorrow.
@ninuritu9312
@ninuritu9312 5 жыл бұрын
Clearcut explanation.Thank you Mukesh
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Ninu :)
@lakshminaresh
@lakshminaresh 8 жыл бұрын
it was an excellent video about page object model, thanq so much... actually I have a doubt in page factory implementations it clarified me..
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Naresh I am glad to hear it clarified your doubts.Cheers
@venkytesting9496
@venkytesting9496 4 жыл бұрын
Good explanation and easy to understand ...Thanks Mukeh...
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Always welcome Venky.
@barurisaikiran
@barurisaikiran 7 жыл бұрын
Thank you very much Mukesh Wonderful presentation ! Thanks Sai
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+baruri saikiran thanks Sai keep sharing and keep visiting
@MakeLearingEasy
@MakeLearingEasy 5 жыл бұрын
Thanks Mukesh..Nice explanation..short and sweet.. I Would like to request you, Kindly make video to explain any one testing project with complete framework details at one time,
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Gajanan, You can play this playlist kzbin.info/www/bejne/rHe7fWekgrypjqs
@evadimitrova3216
@evadimitrova3216 5 жыл бұрын
Very helpful videos! Thank you Mukesh!
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Eva
@princenawsher4381
@princenawsher4381 9 жыл бұрын
good ..I think we should set the system properties for crome and IE?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Prince Nawsher yes we have to set the property for chrome and IE.
@Shwetank0512
@Shwetank0512 7 жыл бұрын
Briliant description !
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Thanks Shwetank :)
@baldygaming2226
@baldygaming2226 7 жыл бұрын
Hi mukesh great day to you and again great lesson! very helpful! well just wanted to ask if you have a lesson for the auto suggest text box?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Marven after 16 may I will be having so much new content.
@baldygaming2226
@baldygaming2226 7 жыл бұрын
i am ready mukesh! bring it on!
@shaiksuleman3191
@shaiksuleman3191 4 жыл бұрын
Amazing and Crystal Clear Example
@grreddy7896
@grreddy7896 9 жыл бұрын
hi mukesh...i added enter title and content and publish button elements in seperate addnew page..while entering title text it is giving null pointer exception what might be the problem?i added constructor as well
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+gr reddy Hi Please share the code as well.
@grreddy7896
@grreddy7896 9 жыл бұрын
Thanque for your reply mukesh.It worked.But please clarify one more, suppose if we have some constant elements in multiple pages(Ex :Home ,SignIn links),in which page do we write them(write only once right !!)?
@gauravgandhi2163
@gauravgandhi2163 7 жыл бұрын
Hi Mukesh, Thanks for the video. I need to ask a question that how i can run 2 test cases in series e.g I want to run Loginpage first and then postpage. I am not able to run the second test case because the user should be already logged in for 2nd case to run. Please help !!!!!!!!!
@jayaprabhumohan4259
@jayaprabhumohan4259 7 жыл бұрын
Hi Gaurav, You can use TestNG priorities (i..e in your case, for Loginpage set (priority=1), and for the post page set (priority =2) or you can use dependsOnMethods to prioritise your test cases.
@sushanthsriram5259
@sushanthsriram5259 8 жыл бұрын
Good and Easy to understand. Passing parameters and return is little bit complex. so if could you create another video that could be more useful for Beginners
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Sushanth, yes will create soon.
@rijuvijayan8965
@rijuvijayan8965 7 жыл бұрын
Hi Mukesh, why do we need a construtor in this example? (11.38). We are not using it anywhere in the class file. I tried without a constructor and it worked fine. Can you help please?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Riju, If you want to use driver is pages then you need constructor to work with driver.
@sudhirkhaire
@sudhirkhaire 4 жыл бұрын
very helpful to better understanding of POM
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
I am glad to hear that Sudheer
@sudhirkhaire
@sudhirkhaire 4 жыл бұрын
@@Mukeshotwani I made classes for login and post, can you guide me to run these 2 class combine at a time e.g first login then post.
@shyamananth
@shyamananth 9 жыл бұрын
So nice !! Thanks a lot for your contributions and time !!!
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
thanks :)
@easytechielearning
@easytechielearning 4 жыл бұрын
I need help on switching windows,frames, uploading and downloading files, reading and writing into an excel sheet using page factory. Could you please help on this
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
HI Mate, I have videos for all the new topics on my channel. Please do check and let me know if you face any issue.
@easytechielearning
@easytechielearning 4 жыл бұрын
@@Mukeshotwani thank you for your reply Mukesh. Could you please message the youtube handle for the concept of pagefactory that I asked in the above comment. Thank you so much
@phaniindra3290
@phaniindra3290 7 жыл бұрын
Hi Mukesh , I implemented the page object model using page factory , but when i run i am getting the java.lang.NullPointerException. Can you please help me in overcoming this exception. Thank You
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+phani indra Hey Phani send code to mukeshotwani@learn-automation.com
@narasimhanms8822
@narasimhanms8822 7 жыл бұрын
Great videos again ! Have you any videos for data driven testing (reading from Excel) using Page factory?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
No as such you can use the same logic for Page Factory as well
@shivad8455
@shivad8455 9 жыл бұрын
Hi Mukesh, I tried whatever you gave the assignment. I created the new page for Posts and I created the new testcase also. But how to continue this new testcase after login page testcase? Why because we already given the BrowserFactory with browser and URL and how will we continue with this in new testcase? I added all the class files in xml file and executing as a testNG suite.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Shiva D Hi Shiva, After login you have to initialize the post page then you can continue with the remaining steps
@shivad8455
@shivad8455 9 жыл бұрын
Hi Mukesh, We have already a separate class file for Login. By continuing the post page in the login file, I have created another class file for post page and I'm trying to execute in a testNG xml file. In every new test case we should call the BrowserFactory class file , it will open separate browser then how will it find the element?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Shiva D Hi Shiva it will be seperate session so it wont create any issue.
@nidhiprasad
@nidhiprasad 7 жыл бұрын
Many many thanks Mukesh ! The doubt that I had is that dont you have to do System.set property(" ",""); in case of chrome driver?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Nidhi I used the same step to make it work in MAC learn-automation.com/firefox-browser-on-mac-using-selenium-webdriver/ learn-automation.com/chrome-browser-on-mac-using-selenium/ We can also do the same thing in windows too using Env variables.
@nidhiprasad
@nidhiprasad 7 жыл бұрын
Hi Mukesh, My Bad .....I was referring to the Concept in the video at 15:30, where you check the browser type and then you assign the driver accordingly. So in case if the browser happens to be chrome , apart from assigning the WebDriver object driver as ChromeDriver, would we also need to do System.setpProperty (ChromeDriver," Path of the chromeDriver");.
@RosalynAbankwah
@RosalynAbankwah 9 жыл бұрын
hello Mukesh, please can you help me out? I want to write a java method/function that clicks on one button call: "ExpandAll" to display or show hidden fields or names hidden under lettered buttons in a column. The ExpandAll button has an attribute value=true. where true displays hidden fields and false hides the fields.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Rosalyn Abankwah Hi Rosa, Any sample application for reference?
@RosalynAbankwah
@RosalynAbankwah 9 жыл бұрын
+Mukesh otwani I have to show you through teamviewer
@RosalynAbankwah
@RosalynAbankwah 9 жыл бұрын
+Mukesh otwani I have to show you through teamviewer
@RosalynAbankwah
@RosalynAbankwah 9 жыл бұрын
+Mukesh otwani I have to show you through teamviewer
@RosalynAbankwah
@RosalynAbankwah 9 жыл бұрын
+Mukesh otwani I have to show you through teamviewer
@sumathigrandhi2643
@sumathigrandhi2643 6 жыл бұрын
While using how class you have used the variable “using” ,what is the use of it and also we haven’t defined it anywhere in the code .Can you explain the need of using variable .
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Sumathi, using is predefined keyword in pom.
@hossains.5261
@hossains.5261 8 жыл бұрын
This video helped me to clarify my thoughts on page factory. I wanted to know in the @test class could i create object as simply as LoginClassName objA ? and import the class and call my methods from LoginClassName by objA. ? That's what I was doing until now and things didn't go well but with creating object with pagefactory in @test showed from you a new way to approach it and it worked for me. Thank you.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hey Hossain, I am glad to know it worked for you. I always use PageFactory approach which worked for me always.
@JulianKolodzey
@JulianKolodzey 6 жыл бұрын
Great! Thnks. But how to be with an Ajax on the page if it's elements are initialized at the start? Is there a way to refresh the elements?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Julian for Ajax control you can still use @FindBy or normal By class as well.
@shreerangakv7183
@shreerangakv7183 7 жыл бұрын
I'm getting this problem ‘The annotaion @FindBy is disallowed for this location’! please help
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Kindly send code as well to mukeshotwani@learn-automation.com
@PriyankaGupta-wx7nm
@PriyankaGupta-wx7nm 6 жыл бұрын
Me too having same problem pls help
@pallavipatil1744
@pallavipatil1744 4 жыл бұрын
Hello, I am getting exception while running program as 'Timed out receiving message from renderer'. Whereas same program runs fine without Page factory
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Pallavi this issue comes with new page loads. You can suppress this warning using ChromeOption.
@nareshmadipelly
@nareshmadipelly 9 жыл бұрын
Thanks Mukesh for the good video!! I have a doubt on Page factory, how can we select a drop down value using @FindBy ?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+madipelly naresh identify dropdown and use Select class as we do for normal scripts.
@monimathur7178
@monimathur7178 8 жыл бұрын
Hi Mukesh, I am following all your vedios from the past few months.They are really well explained . I am looking forward for a live project to work on .Do u provide such live project training.if yes then please provide me the details.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Moni Mathur Hi Moni glad to know that :). .. Kindly mail me @ mukeshotwani@learn-automation.com
@LINGAREDDYSabbasani
@LINGAREDDYSabbasani 7 жыл бұрын
Nice tutorial appreciate your efforts thank you!!
@rajeshdevan6051
@rajeshdevan6051 6 жыл бұрын
Sir finally I got output I recognized my mistake I made the code correctly then your assignment is little bit tough but still I didn't try I have no time to do your assignment but in future I shall do Sir thank you
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
No hurry take your time for assignment
@leelapothuru877
@leelapothuru877 4 жыл бұрын
Hi Mukesh Very helpful to better understanding of page factory,please let me know how to find when List instead of WebElement.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hey Leela, as per latest post by simon (creator of Selenium) on twitter that @findBy will be deprecated soon. Use By class in pageObjects.
@leelapothuru877
@leelapothuru877 4 жыл бұрын
@@Mukeshotwani Thanks mukesh for the update.pls let me know how to find List by using By class
@saishashank283
@saishashank283 8 жыл бұрын
Hi Bro I have did the assignment which you gave and it run successfully
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Good Shashank bhai Keep it up.
@saishashank283
@saishashank283 8 жыл бұрын
Thank you Bhai Please help me with more information about selenium can you please contact me through my email i can call you
@balajisiva5114
@balajisiva5114 3 жыл бұрын
The Best explanation. Thank you
@2009serfer
@2009serfer 5 жыл бұрын
Very neatly explained. Thanks
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks buddy.
@manjunathb.n7465
@manjunathb.n7465 9 жыл бұрын
Hi, Can we initialise PageFactory in LoginPage class constructor only? LoginPage(WebDriver driver) { PageFactory. initelements(driver, this); } In Test Case How we have to write assertion?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Manjunath B.N Hi Manjunath, yes we can intiliaze in this way as well. For assert you can directly write assertEquals method. Check below post for more detail. learn-automation.com/capture-error-message-in-selenium/
@jdp4999
@jdp4999 7 жыл бұрын
Hi Mukesh ,I learn lots of things from your videos . Question . How and where to use visibilityOf Element method in Page Factory?
@samlawrence541
@samlawrence541 7 жыл бұрын
i tried to run this but getting this exception : org.openqa.selenium.InvalidArgumentException.Expected [object Undefined] undefined to be a string...please i need help asap from anyone ,its running me mad.
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Sam, I guess something went wrong with code . Kindly cross check once learn-automation.com/page-object-model-using-selenium-webdriver/
@satnam_India
@satnam_India 9 жыл бұрын
@Mukesh I am trying to implement POM. My application has registration link and clicking on the registration link opens a popup. So when you start the process, the popup will navigate to 3-4 screens as popup. Suggestion please do I need to create Pages for each of the popup . OR shall I define all the locators for the popup screens on the Registration page itself.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Satnam Singh Hi Satnam I would suggest keep it in Registration page only.
@rajeshrakam580
@rajeshrakam580 5 жыл бұрын
Thank you Mukesh for giving these videos...how to find sequence of selenium videos
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Rajesh you can find the order here learn-automation.com/selenium-webdriver-tutorial-for-beginners/
@satishbabuchaganti6163
@satishbabuchaganti6163 6 жыл бұрын
In verifyvalidlogin class we need to pass url right then i was tried but am unable to get that startBrowser() method after BrowserFactory.
@nirmalanirmi8988
@nirmalanirmi8988 8 жыл бұрын
Hi Mukesh, Thank you so much for explaining Page Factory. I did your assignment but one problem. It does not identify the text body element where you write your post, giving 'nosuchelementfoundexecption', all other elements are working fine. Can you help me on this?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Nirmala Nirmi Please send me ur code to mukeshotwani@learn-automation.com
@harshilsaini3081
@harshilsaini3081 7 жыл бұрын
after passing the browser name and url to browserfactory class it not returning the driver object to the test case class and test case is not beign executed and it shows no error
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Can u Share ur code for review?
@amarsingh-cj7vz
@amarsingh-cj7vz 6 жыл бұрын
Nice Video... Thanks Mukesh
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Thanks Amar :)
@rincyjaison4110
@rincyjaison4110 7 жыл бұрын
Hi Mukesh, I am getting the error while adding @FindBy in page class.Please help The annotation @FindBy is disallowed for this location
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Joseph, @FindBy can be used in Pages only.
@rincyjaison4110
@rincyjaison4110 7 жыл бұрын
Hi Mukesh, I used in Login page class.Please find the below. public class LoginPageNew { public LoginPageNew() { @FindBy(id="user_login") WebElement username; @FindBy(how=How.ID,using="user_pass") WebElement password;
@gowrisankarmuvvala6797
@gowrisankarmuvvala6797 8 жыл бұрын
Hi Mukesh, This video is very useful for me to get start with POM. Could you please help me to understand what is the main differences bet ween normal approach and POM, in normal approach we will keep all the elements info in property file and we will call and use. What could be the main difference. Thanks.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Both are perfect but in OR every object in same file so searching element would be difficult. In Page object model we would be storing based on functionality so it makes our test robust.
@pratibhasingh3432
@pratibhasingh3432 4 жыл бұрын
Great job... its really helpful. Thnku so much
@pk4122
@pk4122 5 жыл бұрын
I would like to know how initElemt is avoiding StaleElementException? Because it also looks for webElement and performs an action, there are chances element is removed and reloaded between the process of finding it and taking action on it.
@anilkumaryadav106
@anilkumaryadav106 4 жыл бұрын
Mukesh, please answer this, I also wanted to know.
@kanikahans4746
@kanikahans4746 4 жыл бұрын
Hi . can you please tell where you write the link for the demo site. I am not able to find. Thanks
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Kanika, you can use any web application for automation. Here is the credentials for demo site Admin Page: s1.demo.opensourcecms.com/wordpress/wp-login.php Username: opensourcecms Password: opensourcecms
@evadimitrova3216
@evadimitrova3216 5 жыл бұрын
I have a question: I am trying to make Firefox to work with Selenium 3, follow all the instruction, but it doesn't start. Any ideas?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Eva what issues or error you are getting with firefox? Did you use Gecko driver? learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/
@Jnana_Lahari
@Jnana_Lahari 9 жыл бұрын
Hi Mukesh, I am too getting same error as Akash, null pointer exception. Where to add the constructor. can please help me. I am working on salesforce application, but i am not able to click on "Split Button". please help me with this. thanks in advance,
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Madhu Joshi Hi madhu is it solved? sorry for late reply I was on leave.
@Jnana_Lahari
@Jnana_Lahari 9 жыл бұрын
No I am not able to click on the button
@Jnana_Lahari
@Jnana_Lahari 9 жыл бұрын
Can you please send me hybrid frame work code if possible
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
Will upload soon.
@shirishbhavani3009
@shirishbhavani3009 6 жыл бұрын
Hi Mukesh, is there any video which includes entire framework like POM page factory , Data driven using excel ,TestNG reports, Maven with jenkins. Need to see an end to end flow ? It would be helpful .
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Shirish uploading soon.
@umamanickam8857
@umamanickam8857 6 жыл бұрын
Mukesh otwani Thank you..we are waiting for it
@samarpati4659
@samarpati4659 3 жыл бұрын
Hii sir, I m getting Null pointer exception even I followed as you said.can you explain what might be the reason?
@MrKellindill
@MrKellindill 8 жыл бұрын
Hi Mukesh. Could you pls explain in two words, what is the advatage of this factory pattern/model comparing to simple page object model? In current example it seems like this is just more complicated and does not increase readability and maintenability, comparing to POM...
@amaan259
@amaan259 2 жыл бұрын
Hi mukesh but this why browser factory necessary it's lot of confusion and u create a return type in that so confusion
@ashriths24
@ashriths24 8 жыл бұрын
Hi Mukesh, i wanted to know one thing. Where would you put the quit method in this framework?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
I used in AfterSuite
@ashriths24
@ashriths24 8 жыл бұрын
Mukesh otwani thanks a lot. Your videos really helped me clear one of the interview
@anjankumarsahu4969
@anjankumarsahu4969 7 жыл бұрын
Hii Mukesh ur superb the concept of POM now fully cleared but some extra things like how to use Loadable Component in POM can u pls elaborate it by creating a video...........pls help me out.
@iamme9250
@iamme9250 8 жыл бұрын
Hi Mukesh, Why did you declare startBrowser as static? Can we declare it as ordinary method instead?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
So that I can call using Classname
@archanabisht9733
@archanabisht9733 7 жыл бұрын
Hi Mukesh, I am little bit confused between '@FindBy(id="") and @FindBy(how=How.ID,using="")'. Which one is better to use. Can you please help me with the difference between these two?
@sundayjeremiah4711
@sundayjeremiah4711 8 жыл бұрын
This is very helpful ... Thank you
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Your most welcome Sunday Jeremiah
@karthikmanoharan6794
@karthikmanoharan6794 7 жыл бұрын
in POM, i have included the List as below @FindBy(how=How.XPATH, using=".//*[@id='customers']/tbody/tr") List Tablec; public List Tablec(){ return Tablec; } when i try to call the List Wbelement method in main program, i am getting the below error java.lang.NullPointerException at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69) at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
@mariovega7429
@mariovega7429 5 жыл бұрын
hello can you send me the video link explaining why we have to initialize webdriver drive in a constructor
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hey Ramirez PageFactory link seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/support/PageFactory.html#initElements-org.openqa.selenium.WebDriver-java.lang.Object-
@sathishreddy7522
@sathishreddy7522 5 жыл бұрын
@@Mukeshotwani sir please give me your mobile number becaz I am having some doughts on software installation such that testing,Cucumber on that purpose I would like to contact to you
@GangaDevi-us4jr
@GangaDevi-us4jr 6 жыл бұрын
hi, am passing the folder path starting from location c drive. like C://folder. how to pass this as generic? thanks
@dimplebajaj7102
@dimplebajaj7102 8 жыл бұрын
Hi Mukesh. Very good explanation for beginners. I am from California and looking for automation training. Is there any way to learn it from you other than the you tube videos you post. Thanks
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Dimple Bajaj Hi Dimple Bajaj thanks a ton for nice feedback. Yes I have details which I want to share. Please send test email to my id I will share the details mukeshotwani@learn-automation.com
@harisherchan2003
@harisherchan2003 3 жыл бұрын
Hi, Got this error Cannot invoke "org.openqa.selenium.WebDriver.manage()" because "Helper.BrowserFactory.driver" is null. Did same as you did on video but still got this error.
@SpiritnMind
@SpiritnMind 2 жыл бұрын
It’s suppose to be “WebDriver.Manager() not manage check ur webdriver setup
@guptaakash1989
@guptaakash1989 9 жыл бұрын
hello mukesh when i tried this page factory method its giving me a null pointer exception why its happening plz tell me
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Akash Gupta Hi Akash, Please use the constructor in Each page class to initialize driver.
@pavankumarchappidi6403
@pavankumarchappidi6403 9 жыл бұрын
+Mukesh otwani Hi Mukesh. a). what does it mean to 'initialize' objects in page factory? b). And what is the advantage of using page factory(@FIND BY) instead of 'By' . Please clarify?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
PageFactory provides cachelookup which increase performance
@apekshasrivastava4101
@apekshasrivastava4101 8 жыл бұрын
+Mukesh otwani : Hi Mukesh, I am also getting the same error (null pointer exception), I have created the constructor in each page class but encountered the same error .Can you please suggest the solution?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Apeksha Srivastava can u send me ur code I will check n reply mukeshotwani@learn-automation.com
@purushothammb9096
@purushothammb9096 9 жыл бұрын
Hi Mukesh How locate the web elements which are inside the table While automating the login page of CRM APPLICATION username and password are inside the 3 table how to locate them please help me Zoho CRM APPLICATION
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+purushotham MB Below link will help you kzbin.info/www/bejne/mmLaZ3-HibuaZ9k
@rajeshkumar-no8sp
@rajeshkumar-no8sp 4 жыл бұрын
Hi sir. I've a question. Using FindBy don't we need to use wait with FindBy? OR FindBY will always inspect the element properly without having wait. Means we'll never get exception of element not find or something
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
No Rajesh FindBy another way to use driver.findElement.You have to use proper wait mechanism to handle sync issue.
@rajeshkumar-no8sp
@rajeshkumar-no8sp 4 жыл бұрын
@@Mukeshotwani thank you so much sir!
@neetu8392
@neetu8392 8 жыл бұрын
Hi Mukesh, thanks for the video. Your videos have been helpful! I have tried this scenario. Like others I am also getting nullpointer exception on the second page that I've created. I have created the constructer on each page. I am unable to resolve this issue. Please help! Thanks.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Neetu Hi Neetu can u please share ur code mukeshotwani@learn-automation.com I will fix the issue.
@neetu8392
@neetu8392 8 жыл бұрын
+Mukesh otwani Looks like I lost the access to this demo site. Cannot learn on this application any more ):
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Neetu I have another site for demo or practice demo.avactis.com/4.7.9/
@ragavibaskaran8994
@ragavibaskaran8994 7 жыл бұрын
I have a question on browser class. Why are we making it as static method? and quite not clear about return type.
@anjankumarsahu4969
@anjankumarsahu4969 7 жыл бұрын
Browser Class is Static because by using static keyword no object have to be create again then the return type is webDriver because in normal programs when ur creating webdriver object like(WebDriver driver = new fireFoxDriver(); let's say) then using that webdriver object(driver) ur launching the browser(driver.get("www.google.co.in");) and maximize the browser (driver.manage().window().maximize();)and accessing the webelement(driver.findElement(By.id("id of the webelement"));) write so same here when the return type is webdriver using the object of return type we can access the webelement and other option available in the program
@shreyanshjain2347
@shreyanshjain2347 9 жыл бұрын
good video..informative..
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Shreyansh jain Thanks
@vinith5672
@vinith5672 3 жыл бұрын
Hi mukesh....how to find web element's' using @findby
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Vinith can u try using By ?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Please follow this updated playlist kzbin.info/aero/PL6flErFppaj0WwNOMFeXPVlNCDuJyPYFi
@dgdgtyey
@dgdgtyey 7 жыл бұрын
Hi Mukesh, How can handle Object Repository for Webtables in POM. Scenario like i need to read the users data from the data table and i need to create object for the datatable attribute in Object Repository. so how to handle in the Object Repository? Thanks in advance. Regards, Venkatesh
@twistedstyles
@twistedstyles 2 жыл бұрын
findby and how seem to do the same things, whats the difference??
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
findby is alternative. From Selenium 4 it is recommended to use By class which make scripts more stable.
@arkaimps
@arkaimps 7 жыл бұрын
Hi Mukesh.. Thanks for the efforts that put in for the videos. Its very really awesome.Trying to learn automation watching your videos only :) I have a quick question about the property file and PageFactory when i was thinking to co-relate in between the two. can it be done and will it give any advantage if we are already having @cache annonation in pagefactory model?
@avishekbehera
@avishekbehera 6 жыл бұрын
Thank you for the amazing video..I have a query.. for example I want to implement fluent wait..and want to give a condition to wait for an element with a locator may be xpath. How would I do it? normally I do WebElement element = (new WebDriverWait(driver, 50)) .until(ExpectedConditions.elementToBeClickable(By.xpath(YC_compName))); here instead of By.xpath(YC_compName), what can be used?
@puneetsingh2026
@puneetsingh2026 7 жыл бұрын
Thanks for this and your other Videos.
How to Read Excel File in Selenium Webdriver Using Apache POI
42:46
Mukesh otwani
Рет қаралды 611 М.
Page Object Model in Selenium Webdriver Step by Step Guide
31:21
Mukesh otwani
Рет қаралды 467 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
Disadvantages of pageFactory pattern and how to overcome
25:55
How To Explain Test Automation Framework In Interviews For Selenium
13:42
Page Object Model in Playwright
29:17
CommitQuality
Рет қаралды 27 М.
Page Factory vs POM | Interview Question | QA Automation talk
6:53
QA Automation Talk
Рет қаралды 2,7 М.
How to execute failed test cases in Selenium webdriver
17:09
Mukesh otwani
Рет қаралды 97 М.
How to handle hidden webelements in Selenium Webdriver
21:19
Mukesh otwani
Рет қаралды 126 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН