Page Object Model (POM) Design in Selenium with Java Generics

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии •

  • @Jit143kumar
    @Jit143kumar 5 лет назад +13

    Naveen I have no idea how much sweat blood and tears it took to create this magic but the outcome is really Sweet & phenomenal ! I'm really inspired by your work.

  • @mahbubhossain1734
    @mahbubhossain1734 5 лет назад

    Hi, Naveen I am following your videos for last 3 years and learning new things every time updating my skills. Thank you

  • @shikhar5300
    @shikhar5300 5 лет назад +1

    I am following your videos since last 1 year and updating my skills. I just want to thank you for all the hard work you are putting in. God bless you :)

  • @jayshreepatil8231
    @jayshreepatil8231 4 года назад

    Thank u naveen. I watching ur videos by last one year .I am learning many new things in selenium

  • @mjj3tube
    @mjj3tube 4 года назад +1

    This is definitely something I have never heard , amazing Naveen.

  • @arunx20042003
    @arunx20042003 5 лет назад +6

    I wish I could work with Naveen in same team

  • @akashshastrakar1735
    @akashshastrakar1735 5 лет назад +1

    This is really amazing... I am learning many new things in selenium from your channel
    Thank you Naveen for sharing....

  • @sayyedfiroz7556
    @sayyedfiroz7556 5 лет назад +1

    Thank you for your great support
    I have learned selenium by your valuable contribution

  • @abdulmasum263
    @abdulmasum263 5 лет назад +2

    I really admire your efforts.

  • @Shwetank0512
    @Shwetank0512 4 года назад

    Thank Naveen for your TREMENDOUS efforts. I have learnt a lot from your tutorials. Kudos for your efforts.

  • @shankarchanna2549
    @shankarchanna2549 3 года назад

    Simply awesome😇👌

  • @chillamcharlabharath9730
    @chillamcharlabharath9730 5 лет назад +1

    This is really Amazing.. Awesome sir💐💐💐👌👌👌👌

  • @khaiyummohammad2634
    @khaiyummohammad2634 5 лет назад +1

    Thanks Naveen, really appreciate your contribution awesome video

  • @PiotrPiotr-mo4qb
    @PiotrPiotr-mo4qb 5 лет назад +1

    This is exactly what I was looking for. Thanks!

  • @shadowfrost420
    @shadowfrost420 4 года назад

    This is amazing concept and code looks so clean and easy to maintain..you are awesome Naveen ...God bless you

  • @MrUmang40
    @MrUmang40 5 лет назад +1

    Thanks a lot.....we owe a lot to you.....

  • @SamiSabirIdrissi
    @SamiSabirIdrissi 5 лет назад +1

    Super Awesome. Super lit.

  • @abraham2961
    @abraham2961 5 лет назад +1

    Thanks Naveen really need this video

  • @sridhark5020
    @sridhark5020 5 лет назад +1

    Thanks a lot sir... Really outstanding work...

  • @jaykishoreduvvuri7598
    @jaykishoreduvvuri7598 5 лет назад +1

    Thanks very much. you are a Star!

  • @khajazakiuddin931
    @khajazakiuddin931 5 лет назад

    amazing concept naveen.. liked it🙂

  • @MrRanjitray
    @MrRanjitray 5 лет назад +3

    Thanks a lot Naveen for the new approach. Really excellent approach. One more doubt , Any suggestion, where we can have util file and also function for properties file (config. properties). Earlier i have properties details in TestBase class and i had different Util class.

  • @VineetKumar-eb3lv
    @VineetKumar-eb3lv 5 лет назад +1

    Thank you Naveen.

  • @rajalakshmis201
    @rajalakshmis201 4 года назад

    Great Sir.. You are brilliant

  • @SP-vq7tg
    @SP-vq7tg 24 дня назад

    @naveen So, we dont need to use page chaining now correct?

  • @bjaggu
    @bjaggu 3 года назад

    So good design. Nice and clean I love this. But have to workout

  • @tanmaykhope2020
    @tanmaykhope2020 5 лет назад

    This is really Amazing sir..

  • @VikasKumar-ho5ri
    @VikasKumar-ho5ri 5 лет назад +2

    Hey Naveen, we can also create on method in Base Test which return object of subclasses further it may employ to access all member methods. Can you please suggest

  • @Mr_TravelEatWorship_Official
    @Mr_TravelEatWorship_Official 5 лет назад +1

    Naveen...how to contact u to get onlinetraining from u?
    need to subscribe first???
    please let us know

  • @smonica8364
    @smonica8364 5 лет назад +3

    Hi naveen this is bit different and difficult. I ll work with this
    Thanks

  • @OdiaVlogsbyLipika
    @OdiaVlogsbyLipika 4 года назад +1

    Thanks a lot Naveen for this concept.
    In interviews, while explaining about framework, should I explain about POM with Page Factory or with Java Generics?

  • @v2factsand327
    @v2factsand327 2 года назад

    Awesome

  • @shareefshaik6678
    @shareefshaik6678 5 лет назад +2

    Superb👌..... Naveen Bhai I have a question.. As an automation guy is it require to write the testcases and testscenarios?

  • @rajalakshmihariharan1117
    @rajalakshmihariharan1117 4 года назад

    Can u please add the video to generate runnable jar file in the page object model framework along with testing..also mention how to solve no main class in manifest issue

  • @bcoleone1
    @bcoleone1 5 лет назад

    Hi great work thanks for sharing your knowledge, is there any benefit to not using page factory ?

  • @SuperOm12
    @SuperOm12 5 лет назад

    Good tutorial naveen. Can I go to same approach using page factory pattern.

  • @shubhamvashist4600
    @shubhamvashist4600 5 лет назад +1

    I have a Doubt, If we use GetInstance For Every Test will it not create mutiple object of one Class ? Wouldn't it be better if we Store the Instance in Reference Variable and use for the entire Test ?

    • @automationneemo
      @automationneemo 4 года назад

      I also have the same question. @Naveen can you please clarify?

    • @vinodmallah1223
      @vinodmallah1223 3 года назад

      i too had the exact same doubt, @naveen can you please clarify on this

  • @trishikumar34
    @trishikumar34 Год назад

    Hi sir, could you make just java generic video

  • @muhammedzubair3120
    @muhammedzubair3120 5 лет назад

    Hi Naveen, I'm waiting for the Appium part-3 for windows.

  • @bharathkoneru4008
    @bharathkoneru4008 5 лет назад

    Naveen, we are initialising the Page class constructor in Base Test class.
    We are adding the constructor in BasePage class as Page class has the constructor. But on including super(driver,wait) which invokes Page class constructor....what it actually does in the program? Can you please explain.
    I hope this will clarify my doubt on
    what super(driver,wait) does in all the page classes.
    Please help

    • @bharathkoneru4008
      @bharathkoneru4008 5 лет назад

      Thank u Naveen, I got my doubt clarified after watching POM with all OOPs concepts. Regarding the need of why we are passing the initialised driver in Base Test class to Page class so that the driver will be supplied to all the pages using the line super(driver). At first Page to Base Page then driver is supplied to all the pages from Base Page.
      Thanks a ton Naveen 🙏 learning well n gaining confidence.

  • @AvikGhosh92
    @AvikGhosh92 5 лет назад

    Reflection has a performance penalty, as mentioned in the Oracle Docs (docs.oracle.com/javase/tutorial/reflect/index.html). Is there any specific advantage of taking this approach?

  • @ahamedabdulrahman
    @ahamedabdulrahman 5 лет назад

    Naveen, anyhow in this case we are having the overhead of defining constructor with (WebDriver, WebDriverWait) for each and every page class isn't if?

    • @naveenautomationlabs
      @naveenautomationlabs  5 лет назад

      This is not Overhead. This is just the mechanism of passing the driver.

  • @bibhutijha1113
    @bibhutijha1113 5 лет назад +1

    Why baseclass is extending pageclass when page class object has already been created in testbase class where we have already passed driver and wait object to it's constructor .

    • @nikhiljain6907
      @nikhiljain6907 5 лет назад

      Role of BasePage comes into play when you create child page classes ( like LoginPage and HomePage), so that LoginPage can utilize the wrapper methods. BasePage is extending Page so that it can call the constructor of Page, The wrapper methods inside it are not used directly but via the child classes like LoginPage and HomePage.
      Also , bear in mind that BasePage is a layer to keep the 'util wrapper' code segregated for easy maintainability and scalability you can choose not to implement it at all and add your 'util wrapper methods' in the Page class itself.
      @NaveenAutomationLabs: Correct me if I am wrong !

  • @SamiSabirIdrissi
    @SamiSabirIdrissi 5 лет назад +1

    I tried it on my side but i get Null pointer exception because of this method being called in my test class page.getInstance(LandingPage.class).login("sami", "sami"); at com.qa.parabank.tests.LandingPageTest.successfullyLoginTest(LandingPageTest.java:17) Naveen can you give me a quick hint please

    • @naveenautomationlabs
      @naveenautomationlabs  5 лет назад +1

      Make sure page ref is initialised with page class object. Check the code again explained in video.

  • @puneetgupta4006
    @puneetgupta4006 5 лет назад

    i am getting below error when i'm exe. the LoginPage Test plz help out-
    Error: Main method not found in class com.qa.ectms.test.LoginPageTest, please define the main method as:
    public static void main(String[] args)
    or a JavaFX application class must extend javafx.application.Application

  • @iwillshowyouyourplace.
    @iwillshowyouyourplace. 3 года назад

    Hi Naveen, i followed as you have done...only difference is as follows - instead of @BeforeMethod in the "BaseTest.java" , i used @BeforeTest.
    It gives me a "null pointer exception" in the 2nd test when run from testng.xml suite.