Тёмный

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

Mukesh otwani
Подписаться 179 тыс.
Просмотров 275 тыс.
50% 1

Опубликовано:

 

19 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 489   
@valeriisynenko1893
@valeriisynenko1893 6 лет назад
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 RU-vid 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 8 лет назад
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 8 лет назад
+sathissh s Hi Sathissh, your comment made my day :) Thank you keep visiting.
@zafirahaishaarish517
@zafirahaishaarish517 8 лет назад
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 8 лет назад
+Borna Hossain Thanks Borna.. Let me know if any help required..
@Nandhis
@Nandhis 7 лет назад
This is covering scalability as well. Good video.
@Mukeshotwani
@Mukeshotwani 7 лет назад
Thanks Nandhis I am glad it helped you.
@kozakmos3434
@kozakmos3434 8 лет назад
Hi Mukesh from Turkey !!! Than you for all videos !!!
@Mukeshotwani
@Mukeshotwani 8 лет назад
+karacan kayar Thank you Karacan :)
@SaikiranPalugula
@SaikiranPalugula 8 лет назад
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 8 лет назад
+Saikiran Palugula Thanks SaiKiran yes sure I have so many topics in Pipeline will upload soon. Happy weekend
@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.
@KuldeepKumar-wu7xx
@KuldeepKumar-wu7xx 7 лет назад
Very well consolidated..Thanks a lot Mukesh for sharing...!!
@Mukeshotwani
@Mukeshotwani 7 лет назад
Keep visiting Kuldeep.
@lilylikelily
@lilylikelily 5 лет назад
You are a great teacher, I really appreciate how you take time and explains every steps in details !! Thank you
@purushothamamb6146
@purushothamamb6146 8 лет назад
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 8 лет назад
+Purushothama MB Hi Purushothama Thank you. I am glad that it helped you.
@jinceyj4424
@jinceyj4424 4 года назад
the best tutorial in youtube... thanks a lot for the help Mukesh. :)
@Mukeshotwani
@Mukeshotwani 4 года назад
Thank you Jincy
@MadirajuKChaitanya
@MadirajuKChaitanya 8 лет назад
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 8 лет назад
+Madiraju K Chaitanya Hi Chaitanya ji, I will update the code in blog tomorrow.
@saurabhparasar21
@saurabhparasar21 8 лет назад
Hi Mukesh, All the videos are awesome and very very helpful. Thanks for sharing these :)
@Mukeshotwani
@Mukeshotwani 8 лет назад
+saurabh Pandey Thanks Saurabh panday keep visiting :)
@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
@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
@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.
@AndrewKramerenko
@AndrewKramerenko 7 лет назад
Thank you, Mukesh, you've saved my life!
@Mukeshotwani
@Mukeshotwani 7 лет назад
Great man :) Cheers
@kirantherise1
@kirantherise1 8 лет назад
Thanks Mukesh, Got learn new concept Page Factory...
@Mukeshotwani
@Mukeshotwani 7 лет назад
Welcome Kiran. happy weekend.
@LearnWithGajanan
@LearnWithGajanan 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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vFXL4nMWvXI.html
@GoUpstairs
@GoUpstairs 6 лет назад
mate! u r a great teacher! keep on doing this! greetings from Argentina
@Mukeshotwani
@Mukeshotwani 6 лет назад
😀 Ur comments made my day..
@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.
@FYPNLP
@FYPNLP 6 лет назад
Great tutorial video. You made what looked like super complex concepts very easy to understand.
@barurisaikiran
@barurisaikiran 7 лет назад
Thank you very much Mukesh Wonderful presentation ! Thanks Sai
@Mukeshotwani
@Mukeshotwani 7 лет назад
+baruri saikiran thanks Sai keep sharing and keep visiting
@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
@ninuritu9312
@ninuritu9312 5 лет назад
Clearcut explanation.Thank you Mukesh
@Mukeshotwani
@Mukeshotwani 5 лет назад
Thanks Ninu :)
@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.
@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
@Manojkumar-yi5cs
@Manojkumar-yi5cs 8 лет назад
It 's very useful mukesh. Keep posting videos like this.
@Mukeshotwani
@Mukeshotwani 8 лет назад
Thanks Manoj :)
@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.
@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 7 лет назад
Hi Bro I have did the assignment which you gave and it run successfully
@Mukeshotwani
@Mukeshotwani 7 лет назад
Good Shashank bhai Keep it up.
@saishashank283
@saishashank283 7 лет назад
Thank you Bhai Please help me with more information about selenium can you please contact me through my email i can call you
@Shwetank0512
@Shwetank0512 7 лет назад
Briliant description !
@Mukeshotwani
@Mukeshotwani 7 лет назад
Thanks Shwetank :)
@MrKellindill
@MrKellindill 7 лет назад
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...
@shaiksuleman3191
@shaiksuleman3191 4 года назад
Amazing and Crystal Clear Example
@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
@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.
@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?
@venkytesting9496
@venkytesting9496 3 года назад
Good explanation and easy to understand ...Thanks Mukeh...
@Mukeshotwani
@Mukeshotwani 3 года назад
Always welcome Venky.
@princenawsher4381
@princenawsher4381 8 лет назад
good ..I think we should set the system properties for crome and IE?
@Mukeshotwani
@Mukeshotwani 8 лет назад
+Prince Nawsher yes we have to set the property for chrome and IE.
@kothurivenkateshavenkatesh7570
Hi Mukesh, It was a nice explaination but i have some clarifiactions. 1.In LoginPageNew class, you defined parameterised constructor but you created object through PageFactory, is it same as new LoginPageNew(driver); ??. 2.In LoginPageNew class,you defined login_wordpress function whose return type is void but it should be the return type of next page class as of normal POM approach, isn't that true?
@shyamananth
@shyamananth 8 лет назад
So nice !! Thanks a lot for your contributions and time !!!
@Mukeshotwani
@Mukeshotwani 8 лет назад
thanks :)
@evadimitrova3216
@evadimitrova3216 5 лет назад
Very helpful videos! Thank you Mukesh!
@Mukeshotwani
@Mukeshotwani 5 лет назад
Thanks Eva
@nareshmadipelly
@nareshmadipelly 8 лет назад
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 8 лет назад
+madipelly naresh identify dropdown and use Select class as we do for normal scripts.
@prasadp4648
@prasadp4648 7 лет назад
Hi Mukesh, LoginPageNew login = PageFoctory.initElements(driver,LoginPageNew.class) // It returns object of the given class LoginPageNew login = new LoginPageNew(); // Also returns object of the given class What is the difference between these two? Which one is preferable in Page Object Model? Thanks you!
@purushothammb9096
@purushothammb9096 8 лет назад
Hi Mukesh I request you to upload a video on hybrid or data driven framework with code explanation please.
@Mukeshotwani
@Mukeshotwani 8 лет назад
+purushotham MB Please check DDF ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ORscNOhgW4w.html Hybrid will upload soon
@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.
@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.
@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/
@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
@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!
@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.
@purushothamamb6146
@purushothamamb6146 8 лет назад
HI Mukesh, Which is the widely used framework in the industry now a days Page object design pattern or Data driven? Can we combine both Data driven And POM together and can write a script. if we learn POM is enough? Am new to selenium Please suggest me. Thank you.
@Mukeshotwani
@Mukeshotwani 8 лет назад
+Purushothama MB Hi you can implement POM with any framework because it is just design pattern. I generally use POM with hybrid framework.
@shreyanshjain2347
@shreyanshjain2347 8 лет назад
hi mukesh please upload one video on setting up keyword-driven framework.. i was following keyword driven framework from toolsqa but unfortunately that is difficult to understand and exception is coming related to reflection package "java.lang.reflect.InvocationTargetException". please do this...it will be very helpful for us. thanks :)
@Mukeshotwani
@Mukeshotwani 8 лет назад
+Shreyansh jain Hi Shreyansh it is in pipeline will upload soon.
@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.
@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?
@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
@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.
@codezamacodinglabs
@codezamacodinglabs Год назад
Hi Mukesh I hope you are doing good. My question is how to create test cases for login page in selenium, for example do i have to create separate test cases in a form of java file for valid credentials and invalid credentials etc. thanks for giving us great learning content. regards
@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
@shreyanshjain2347
@shreyanshjain2347 8 лет назад
good video..informative..
@Mukeshotwani
@Mukeshotwani 8 лет назад
+Shreyansh jain Thanks
@satishbabuchaganti6163
@satishbabuchaganti6163 5 лет назад
In verifyvalidlogin class we need to pass url right then i was tried but am unable to get that startBrowser() method after BrowserFactory.
@fraferf1
@fraferf1 7 лет назад
thanks for this technical video
@Mukeshotwani
@Mukeshotwani 7 лет назад
+fran ferris welcome Fran I am glad you liked it
@manjunathb.n7465
@manjunathb.n7465 8 лет назад
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 8 лет назад
+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/
@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");.
@bharath9009
@bharath9009 8 лет назад
Hi Mukesh I went through your course package at learn-automation. I know the basic stuffs of framework and know how to pass the value using hard coding, like you have explained in page factory. But now i want to explore more by using excel sheets to send data like start date and end date in two different calendars. Would your paid course help me on this ? Please let me know. Regards
@Mukeshotwani
@Mukeshotwani 8 лет назад
Yes it will help in case you have additional requirement then let me know :)
@sidsha8718
@sidsha8718 8 лет назад
Hi Mukesh, this was an excellent video learned alot thanks man,,,,, can you please explain how to include reading multiple set of data from Excel and pass it to loginPage in POM pageFactory Model, please guide me, thanks in advance ,,,
@Mukeshotwani
@Mukeshotwani 7 лет назад
Hi Sid, You can refer below video and try to combine these two concepts. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_7XJenTvR34.html
@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?
@sandeepreddy7866
@sandeepreddy7866 7 лет назад
Hello Mukesh bro you teach awesome. I have a small doubt, in page object model how to get TestData from excel file and use it in web application. I tried but i cannot figure it out kindly help me please.
@Mukeshotwani
@Mukeshotwani 7 лет назад
Hi Sandeep, below guide will guide you learn-automation.com/read-and-write-excel-files-in-selenium/
@m.hakania2251
@m.hakania2251 2 года назад
Hello Mukesh, Thank you for making this video!! It's more than informative to say the least! It seems like you used something called firebug, I've heard about it, and I am watching this video in 2021. I cannot seem to find that plugin/extension in anywhere. Is it deprecated? or got rebranded or replaced by something else? can you please provide some info on this? Thank you & love your videos!
@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
@balajisiva5114
@balajisiva5114 3 года назад
The Best explanation. Thank you
@JulianKolodzey
@JulianKolodzey 5 лет назад
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.
@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
@shamaislam1744
@shamaislam1744 5 лет назад
Please make a video with the return type and parameter concept, as well as constructor concept!!!!!
@Mukeshotwani
@Mukeshotwani 5 лет назад
Thanks Shama sure will do that parameter video I have created. Constructor video will upload soon. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6hf5AWdaizM.html
@Bell4Fun
@Bell4Fun 5 лет назад
Suggestion:--To add the link of the previous vdo inthe current vdo ,incase someone wants to brush up and will help other to easily relate the topics . Or do you have any link which give access to the each topic in a sequence ? Thanks
@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
@chandanmishra1235
@chandanmishra1235 7 лет назад
Hi Mukesh, a lot thanks for this page factory video . I was searching for this from last 2 days. It helped me a lot by all means.I also searched your blog for the code of this tutorial but couldn't able to find. can you please give me the link. I will do this assignment and send you for verification. Thanks again :)
@Mukeshotwani
@Mukeshotwani 7 лет назад
Hey Chandan, I am glad it helped you. Here is the link of article learn-automation.com/page-object-model-using-selenium-webdriver/
@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
@2009serfer
@2009serfer 5 лет назад
Very neatly explained. Thanks
@Mukeshotwani
@Mukeshotwani 5 лет назад
Thanks buddy.
@subasthapa8895
@subasthapa8895 7 лет назад
I am having problem with correlation . I can create class using page object/page factory and run the test cases. Can't relate two or more page object or page factory classes. Eg. Login then add events then publish blah blah. Would you mind posting real time test scenarios? That would be far better Thanks
@JuanAlvarez-iy4jg
@JuanAlvarez-iy4jg 7 лет назад
Hi Mukesh. Please give an example on how to use assertion for verifying login details for the above program. Thanks
@grreddy7896
@grreddy7896 8 лет назад
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 8 лет назад
+gr reddy Hi Please share the code as well.
@grreddy7896
@grreddy7896 8 лет назад
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 !!)?
@venkytesting9496
@venkytesting9496 3 года назад
Hi Mukesh i have one doubt :- Where we need to Write/mention Set System Property of Browsers like Chrome and FF ect... in page we need to Mention Browser System property...In This video u did't not spoke about Browser System property......Please help me on this....Thanks...
@Mukeshotwani
@Mukeshotwani 3 года назад
Hey Venky, this is old video so back in day there was no driver for FF.
@maddyrao8996
@maddyrao8996 3 года назад
Hi venky you can write under if statement of "chrome" if condition is true for chrome...then inside if loop write System.setproperty("webdriver.chrome.driver",your path); Driver = new chrome driver();
@sundayjeremiah4711
@sundayjeremiah4711 8 лет назад
This is very helpful ... Thank you
@Mukeshotwani
@Mukeshotwani 8 лет назад
Your most welcome Sunday Jeremiah
@singhsaurav27
@singhsaurav27 3 года назад
Hey Mukesh, thanks for amazing video. Can we limit webdriver scope when we use pagefactory in automation framework?
@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 5 лет назад
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?
@LINGAREDDYSabbasani
@LINGAREDDYSabbasani 7 лет назад
Nice tutorial appreciate your efforts thank you!!
@shivad8455
@shivad8455 8 лет назад
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 8 лет назад
+Shiva D Hi Shiva, After login you have to initialize the post page then you can continue with the remaining steps
@shivad8455
@shivad8455 8 лет назад
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 8 лет назад
+Shiva D Hi Shiva it will be seperate session so it wont create any issue.
@omikaingle4484
@omikaingle4484 6 лет назад
Hi Mukesh, As you said at 17.20 sec that if not comfortable with return type and cast you will create another video. If you have already done then could you please send me the path or else can you please create video for return type and cast and similar concepts.
@amarsingh-cj7vz
@amarsingh-cj7vz 5 лет назад
Nice Video... Thanks Mukesh
@Mukeshotwani
@Mukeshotwani 5 лет назад
Thanks Amar :)
@hudakhaled8353
@hudakhaled8353 5 лет назад
What is how? and what is the difference between using how and suing @FIndBy only?
@ramyapv6690
@ramyapv6690 6 лет назад
Hi Mukesh, Thanks for the video.I have one doubt can you pls tell me what is the purpose of changing the return type from void to Webdriver in the helper (Browsername class).
@samarthjain5170
@samarthjain5170 3 года назад
Hi Mukesh I have one question? For object repository which one is the best page factory or By locators? TIA
@satnam_India
@satnam_India 8 лет назад
@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 8 лет назад
+Satnam Singh Hi Satnam I would suggest keep it in Registration page only.
@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
@saif-gn7qr
@saif-gn7qr 5 лет назад
Can we parameterize the fields using excel? Can u make a video for this? Awesome video..
@Mukeshotwani
@Mukeshotwani 5 лет назад
Hi Saif yes passing parameter will remain same you can check my framework video on this. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RvwMu7tG6TA.html
@gauravdesai8177
@gauravdesai8177 7 лет назад
In browser factory you have taken webDriver as return type. If take void as return type plese tell what kind of changes i have to do in script Waiting for your reply.
@Mukeshotwani
@Mukeshotwani 7 лет назад
Hi Gaurav, I have returned because I want to use for next steps
@UshaBrahma
@UshaBrahma 7 лет назад
Hi Mukesh, Can do a tutorial on how to use Selenium grid on Linux? Thanks
@venuchinta5138
@venuchinta5138 7 лет назад
Hello Mukesh, My project is having lot of reusable functions. Currently i'm NOT using Page factory and I have created separated classes for Page Objects, Re-usable functions and Test Cases. Here, If I follow Page Object Model using Page Factory, then should I write all reusable methods on the page objects class itself or is there any way to separate page objects and re-usable functions.
Далее
Dynamic XPath in Selenium  using Different Approaches
28:12
How to execute failed test cases in Selenium webdriver
17:09
How to handle hidden webelements in Selenium Webdriver
21:19
Selenium Integration with Cucumber BDD Tool
34:39
Просмотров 352 тыс.
Object repository in Selenium Webdriver
29:20
Просмотров 87 тыс.