Page Object Model pattern with TestNG Framework | End to End Test Automation Project Selenium

Поділитися
Вставка
  • Опубліковано 9 гру 2021
  • Page Object Model : • Page Object Model (POM)
    Extent Reports : • Extent Reports
    TestNG LIsteners : • TestNG Listeners
    Cypress Automation: • Cypress Automation
    Rest Assured + TestNG : • API Automation - Rest ...
    Automation batch jobs : • Automation Batch - CMD
    Cucumber Framework: • Cucumber/BDD Framework
    SDLC/STLC : • SDLC/STLC
    GitHub Series: • GitHub Tutorial Series
    TestNG Framework : • TestNG Framework Tutor...
    QA/SDET Java interview question : • Automation Testing Int...
    Selenium interview questions and answers for freshers and experienced: • Selenium interview que...
    Filesystem in java and selenium: • FileSystem_JAVA/Selenium
    Selenium beginners tutorials: • Selenium Beginner Tuto...
    Postman beginners tutorials: • Postman beginner tutorial
    Selenium : • Selenium
    Advance selenium: • Advance Automation
    Mobile testing: • Mobile Testing
    Please do subscribe for more tutorials on selenium automation @SH Study Tech
    Please share questions and queries in the comments section.
    Follow me on Facebook: / sureshsdetautomation
    Follow me on LinkedIn : / suresh-sdet-automation...
    Follow me on the blog: shstudytech.blogspot.com/
    Follow me on Twitter: / sureshsdet
    Subscribe to youtube channel: / @sureshsdetautomation
  • Наука та технологія

КОМЕНТАРІ • 127

  • @harshhwardhanrai3716
    @harshhwardhanrai3716 2 роки тому +8

    This was the fourth video I searched on POM topic and now finally got the concept. Thanks for explaining in this much detail.

  • @user-kp4rz4eg1g
    @user-kp4rz4eg1g 9 місяців тому +1

    This session is very helpful, I searched so many videos on POM but I found this one to be very informative and easily understandable. Thank You for such a nice session✌

  • @AbhishekKumar-go8of
    @AbhishekKumar-go8of 2 роки тому

    Very Helpful to understand the logic clearly...Thank you Sir

  • @aarifraja4898
    @aarifraja4898 7 місяців тому +2

    This video is really helpful. I followed many videos to learn POM. But this session cleared all my doubts and it was very easy to understand the concept. Thank you sir🤝

  • @aditijha6254
    @aditijha6254 5 місяців тому +1

    This video is really helpful. this session cleared all my doubts and it was very easy to understand the concept. Thanks for explaining in detail.

  • @nileshpinjarkar1860
    @nileshpinjarkar1860 Рік тому +1

    Thank you sir for making this video. It really helped me.

  • @KenjiMiller
    @KenjiMiller Рік тому +1

    Awesome, thank you!

  • @efuraa
    @efuraa 2 роки тому +2

    Takes for this tutorial Suresh, I needed a refresher before an interview n.n

    • @SureshSDETAutomation
      @SureshSDETAutomation  2 роки тому

      Thanks for writing..
      I have listed interview questions series please check out my playlist.

  • @TrigzYangco
    @TrigzYangco Місяць тому +1

    Thanks Bhai. It's really helped me a lot.

  • @bhairub3358
    @bhairub3358 Рік тому +2

    Explanation is nice and plz make some more videos on theme of real project.

  • @vishramitachaudhary2884
    @vishramitachaudhary2884 Рік тому

    I Am facing an error "org.openqa.selenium.hasauthentication maven" while running. Please can you help me with this? Thank you

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому +1

      Can you checkout my testng or page object model playlist for better maven project creation

  • @LifeLessionsAcademy
    @LifeLessionsAcademy 2 роки тому

    Thanks a lot.... really helpful video

  • @tapaskhandai
    @tapaskhandai Рік тому +2

    Hi , Could you please make a video on the constructor role in POM. How it works? Why we need to create a constructor in every page? What will happen if we dont create constructor ?

  • @sridharmamidipaka6252
    @sridharmamidipaka6252 2 роки тому +1

    Really very good i understand very well .....
    Thank you so much Suresh

  • @rvthym89
    @rvthym89 11 місяців тому +1

    high priority is given to the search operation. And while running serach operation takes place first but in the console serach operation result is printed as second, Can you explain why?

  • @sinaiministries-pranathika1333
    @sinaiministries-pranathika1333 2 місяці тому +1

    Hi Suresh, can you let me know if page factory has to be used in each webpage class for web elements initiation?

    • @SureshSDETAutomation
      @SureshSDETAutomation  2 місяці тому

      Yes you need to create pagefactory per page or you can reuse by using inheritance concepts

  • @shradha1210
    @shradha1210 2 місяці тому +1

    Hi Suresh,
    could you please share the plugins that u mentioned in last 5 mins in your clip.

  • @farwabatool975
    @farwabatool975 2 роки тому

    Perfect solution :)

  • @roxanworld2351
    @roxanworld2351 Рік тому

    Your video is really very helpfull

  • @MyPersonalSpace-uh3wd
    @MyPersonalSpace-uh3wd 2 місяці тому +1

    Please share plugins. i didn't find in the description

  • @vipulpatil6166
    @vipulpatil6166 2 роки тому

    To be honest great keep it up

  • @abhijeetpotdar1069
    @abhijeetpotdar1069 Рік тому +1

    Can you please share the xml configuration to setup the environment

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Sure
      Can you please checkout my community posts there i have shared XML file.

  • @pkrockon200
    @pkrockon200 2 роки тому +1

    Very good tutorial....

  • @Shubham-fk4is
    @Shubham-fk4is 4 місяці тому +1

    Have you made any video on Selenium data driven framework with POM?

  • @abubakarmuhammed2705
    @abubakarmuhammed2705 2 роки тому

    Very helpful. Thanks
    Please can you share the link to the next session. Thanks

  • @ankitagoel787
    @ankitagoel787 8 місяців тому +1

    Very well explained

  • @maheshbabu637
    @maheshbabu637 Рік тому +1

    Hi sir ,have small confusion please clarify , in your video u never user PageFactory.Initelements , is this possible to set up POM frame work without pagefactory keyword.

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Please check out my playlist on POM
      ua-cam.com/play/PLAkEcrdilZ4nhGjwZTSHYV3Xo6xuIckzk.html

    • @maheshbabu637
      @maheshbabu637 Рік тому

      @@SureshSDETAutomation thank a lot

  • @rashmishenoy
    @rashmishenoy Рік тому +1

    Hi thanks for the video, is it possible to share git link for the framework if its public?

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Thanks for writing, in future all scripts will be added into the repo. Please stay tuned for updates

  • @tapaskhandai
    @tapaskhandai Рік тому +1

    Very nice explanation

  • @bestcricketbowling9947
    @bestcricketbowling9947 2 роки тому +1

    Best 👍🏻👌🏻

  • @skutaf
    @skutaf 10 місяців тому +1

    Why did you use deprecated method Implicitlywait without Duration?

    • @SureshSDETAutomation
      @SureshSDETAutomation  10 місяців тому

      I was using the old version of selenium during the time of session i guess

  • @Bosha_
    @Bosha_ Рік тому

    When did you create objectrepo2 in lines 48 - 51? And why do you use them? 56:56

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Please follow my playlist for detailed session on page object model

    • @Bosha_
      @Bosha_ Рік тому

      @@SureshSDETAutomation Thanks Suresh, but I have watched all lectures (five) before this one, very detailed and I also have the same code in my IntelliJ. It was very clear when you used objectrepo. You just implement objectrepo2 at 53:52 but I cannot understand why. Is it obligatory?

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      To answer your question
      Objectrepo2 is created for the Facebook page. And i am using that reference to access all the methods, locators from that page.

    • @Bosha_
      @Bosha_ Рік тому +1

      @@SureshSDETAutomation Thanks, I figured out how and why you created it

  • @sarikagharage1118
    @sarikagharage1118 Місяць тому +1

    Can we add another testcases or package for locators and call that package.

  • @SunitaJanakraj
    @SunitaJanakraj 11 місяців тому +1

    java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.manage()" because "this.driver" is null

  • @tamilselvanm7418
    @tamilselvanm7418 9 місяців тому +1

    Hi help me how create object globally for the page classes

  • @Shubham-fk4is
    @Shubham-fk4is 4 місяці тому +3

    is it required to use POM???????

  • @rajendraprasad9718
    @rajendraprasad9718 10 місяців тому +1

    Hi Sir, Do you have a Github Repo for this?

  • @shreyashpathak2645
    @shreyashpathak2645 Рік тому +1

    Hello, I like the video very much, it is very useful for me.I have question regarding the Framework please suggest how do we select the type of Framework. Either it be Data Driven or Keyword driven or any other.

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Thanks for writing
      It depends on who uses the framework.
      If the product management teams are involved then use data driven + bdd
      If it's used by internal like dev and qa any framework will be ok.

    • @shreyashpathak2645
      @shreyashpathak2645 Рік тому +1

      @@SureshSDETAutomation Thank You very much for the quick response, Please let me know if you created Video Tutorials for Jenkins and Github.

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Please check out my channel for any software testing, automation related sessions.

  • @vivekvkini4506
    @vivekvkini4506 Рік тому +1

    Do you have a Github Repo for this?

  • @sunejashah3176
    @sunejashah3176 Місяць тому +1

    Why we have used build and plugins?

  • @aamolsangal9049
    @aamolsangal9049 Рік тому +1

    Nicely explained content. 🎩

  • @aditya_kittu22
    @aditya_kittu22 Рік тому +1

    Hi brother I'm also automating one webpage using POM+testNG I'm getting exception while executing please try to help me

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      What is the error ?

    • @aditya_kittu22
      @aditya_kittu22 Рік тому

      @@SureshSDETAutomation i'm getting nullpointer exception with Cannot invoke "org.openqa.selenium.WebElement.getTagName()" because "element" is null

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Please check out my locators sessions on the selenium beginners playlist.

  • @KishorIraj24
    @KishorIraj24 Рік тому

    Can't find plugins in description 😢

  • @AbhishekKumar-go8of
    @AbhishekKumar-go8of 2 роки тому

    Can you provide programming file of this video please...

    • @SureshSDETAutomation
      @SureshSDETAutomation  2 роки тому

      Sure will provide as part of Jenkins series. Stay tuned for updates

  • @shomysharma
    @shomysharma 2 роки тому

    Amazing, can I get it's code as I'm facing some errors

    • @SureshSDETAutomation
      @SureshSDETAutomation  2 роки тому

      Sure
      shtechpro@gmail.com

    • @aswathip833
      @aswathip833 Рік тому

      @@SureshSDETAutomation sir how to take screenshot of login and registration page in maven, what are the depencies to be added

  • @gunjandaschowdhury2803
    @gunjandaschowdhury2803 Рік тому

    Please provide the program files!!!! 😭😭🙏🙏🙏🙏🙏🙏🙏

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Can you follow my session and do by your self Das. If i give you files you will never what and why you need to use any condition or code.

  • @monam1671
    @monam1671 5 місяців тому +1

    Test cases skiped not passes what to do...i did everything as you shown in this vedio

    • @SureshSDETAutomation
      @SureshSDETAutomation  5 місяців тому

      Set the priority and see

    • @monam1671
      @monam1671 5 місяців тому +1

      @@SureshSDETAutomation yes tried its working now

    • @monam1671
      @monam1671 5 місяців тому +1

      And for my case i changed testng version to 7.8 then all test cases executed

    • @monam1671
      @monam1671 5 місяців тому +1

      Please do more vedios like this realtime projects its really helpfull

    • @SureshSDETAutomation
      @SureshSDETAutomation  5 місяців тому

      Thanks for writing

  • @NeverStopLearning56
    @NeverStopLearning56 Рік тому +1

    Hi ,
    I m currently working as a manual tester , planning to switch into Automation Testing,
    I heard that 10 yrs experienced tester can be easily replaced with 5 yrs experienced tester for cost cutting, So that 10 yrs experienced tester will loose the job !
    And also people say that ,
    In dev 10 yrs experienced dev cannot be replaced by 5 yrs experienced dev in any company unlike Testers , is that true ?
    Please reply
    Does testers don't have life after 10/15 yrs work experience?
    Anyone who has experience, please clarify this.

    • @SureshSDETAutomation
      @SureshSDETAutomation  Рік тому

      Great question
      If we do manual testing for 10+ years, a 2 years experience guy can easily replace.
      If you should be never be replaced. You should come out of your comfort zone and learn all automation frameworks and in a position to take any challenge.
      Replacing a full stack qa is not that easy sometimes 2 resources required to replace one full stack.
      So learn and implement automation, performance, and security testing.

    • @NeverStopLearning56
      @NeverStopLearning56 Рік тому +1

      @@SureshSDETAutomation thanks

  • @Swapnajanasena
    @Swapnajanasena 2 роки тому

    Hi Suresh I need notes or Pdf of this session

  • @basavkumar7859
    @basavkumar7859 Рік тому +1

    Can u explain about Test NG and Cucumber

  • @rajendraprasad9718
    @rajendraprasad9718 10 місяців тому +1

    getting this issue while running - required your suggestion sir 2023-09-01 09:06:20 DEBUG ResolutionCache:186 - Resolution chrome116=116.0.5845.96 in cache (valid until 08:42:49 02/09/2023 IST)
    2023-09-01 09:06:20 INFO WebDriverManager:1212 - Using chromedriver 116.0.5845.96 (resolved driver for Chrome 116)
    2023-09-01 09:06:20 DEBUG WebDriverManager:1167 - Driver chromedriver 116.0.5845.96 found in cache
    2023-09-01 09:06:20 INFO WebDriverManager:1265 - Exporting webdriver.chrome.driver as C:\Users\abc\.cache\selenium\chromedriver\win64\116.0.5845.96\chromedriver.exe

    • @SureshSDETAutomation
      @SureshSDETAutomation  10 місяців тому

      Please use selenium latest version or use webdriver manager api

  • @ghousemohammed7254
    @ghousemohammed7254 5 місяців тому +1

    I think this video is combination of video 1 to video 5

  • @gayatritankar7856
    @gayatritankar7856 4 місяці тому +1

    Hello sir, I tried xpath, css selector: still getting the same errror here: Exceptions Caughtno such element: Unable to locate element: {"method":"xpath","selector":"//a//h3[text()='Facebook - Log In or Sign Up']"}. Could you please help me to resolve this issue?

    • @SureshSDETAutomation
      @SureshSDETAutomation  4 місяці тому +1

      Try to use the relative path or try selectorshub tool

    • @naveen_raja2891
      @naveen_raja2891 3 місяці тому +1

      Hi gayatri - even i got the same error becz i have move forward in the video.
      Please use priority for each test method and run u will be able to pass 😊