Java Testing with Selenium Course

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

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

  • @RexJonesII
    @RexJonesII 4 месяца назад +53

    Hello Everyone,
    I am Rex Jones II and it was fun creating this Selenium using Java with Page Object Model course.
    Selenium is considered #1 for Web Automation.
    Page Object Model is the design pattern which has benefits that include Code Maintainability, Code Reusability, and Code Readability.
    I wanted to give a big shout out to Beau and Free Code Camp! Watch a Java course if you want a foundation of programming www.youtube.com/@freecodecamp/search?query=Java
    All the source code from this course has been placed on GitHub github.com/RexJonesII/FreeCodeCampSeleniumJava
    Feel free to connect with me on LinkedIn & RUclips:
    LinkedIn www.linkedin.com/in/rexjones34/
    RUclips ruclips.net/user/RexJonesII
    I’m available if you have any questions!
    Thanks

    • @rajverma.1015
      @rajverma.1015 4 месяца назад +2

      Any chance creating a similar course for Selenium with C#?

    • @RexJonesII
      @RexJonesII 4 месяца назад +1

      Hi@@rajverma.1015 Sure I can do a course on Selenium with C#. C# is similar to Java. I'm also versed with Python

    • @rajverma.1015
      @rajverma.1015 4 месяца назад

      ​@@RexJonesII Thank you, that'd be really great.

    • @JamesJones-vz2md
      @JamesJones-vz2md Месяц назад

      Thanks for this amazing tutorial Mr. Jones! I have a question? Is there any jobs specifically for Page Object Model testing? If so, what would be the best platforms to utilize? I've been having such a great time learning from your tutorial, but I've been some what discouraged not to find roles for this particular skill. Thanks!

    • @rajverma.1015
      @rajverma.1015 Месяц назад

      @@RexJonesII Hey Rex, sorry to ask again but it would be a huge favor to have selenium with C# tutorial (preferably with BDD framework). Thanks once again.

  • @JP-mq6oq
    @JP-mq6oq Месяц назад +1

    By far the BEST Selenium tutorial ever that actually teaches you in logical flow that makes sense

    • @RexJonesII
      @RexJonesII 23 дня назад

      That's awesome 👍Thanks @JP-mq6oq

  • @MoloceAlin-mg5rb
    @MoloceAlin-mg5rb 2 месяца назад +7

    Thanks for the tutorial! Those Java Selenium basics alongside the Page Object Model helped me impress my interviewers for an automation testing internship.

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Congratulations!!! That's awesome @MoloceAlin-mg5rb

  • @Migueru3999
    @Migueru3999 13 дней назад +1

    Thank you so much Rex. Best course I ever saw. I finish it all and now I feel confident enough to implement Selenium on projects. I'm sure I'll come later to re watch it when I have any doubt.

    • @RexJonesII
      @RexJonesII 10 дней назад

      Thanks @Migueru3999 👍 That's awesome

  • @drewxx8527
    @drewxx8527 4 месяца назад +23

    Finally, I can take sometime for automation

    • @RexJonesII
      @RexJonesII 4 месяца назад

      That's awesome @drewxx8527. Selenium is great for automation.

  • @SubhinurElemin
    @SubhinurElemin 4 месяца назад +5

    THE BEST SELENIUM TUTORIAL EVEEER!!!!
    Thank you Thank you Thank youuu!!!!

    • @RexJonesII
      @RexJonesII 4 месяца назад

      You're Welcome @SubhinurElemin 👍I'm glad you like it. Thanks

  • @aubreygraham6979
    @aubreygraham6979 20 дней назад +1

    Just landed myself an AQA job at my company! Thanks!

    • @user-hx8fs9mh8g
      @user-hx8fs9mh8g 18 дней назад

      Just by listening this 7hrs class you landed job 😮 ...truly

    • @aubreygraham6979
      @aubreygraham6979 18 дней назад +1

      @ you don’t simply “listen” - it’s verbally read and simplified docs seasoned with basic tips for you to learn WITH, you use it as additional help while studying.
      Also, I’ve got the job while already being a QA employee with a 1+ year experience as a manual tester within
      > my company (i.e. in company that have already employed me before)

  • @brendanleighton
    @brendanleighton 2 месяца назад +1

    Loving your video! I appreciate the effort you're putting into speaking slowly and clearly!

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Thanks @brendanleighton 👍 I appreciate it

  • @na7173-x7y
    @na7173-x7y Месяц назад +1

    Thank you Rex for that greate tutorial! It was very clear and engaging. Thanks.

  • @divya55175
    @divya55175 4 месяца назад +2

    Thank you❤ i was literally waiting for this.... Thank you so much

    • @RexJonesII
      @RexJonesII 4 месяца назад

      You're Welcome @divya55175 👍

  • @waleawo
    @waleawo 2 месяца назад +1

    Absolute masterclass!! Thanks sir.

    • @RexJonesII
      @RexJonesII 2 месяца назад

      You're Welcome @waleawo 👍

  • @tomaspacifico
    @tomaspacifico 3 месяца назад +1

    Thank you very much! I've been looking for a tutorial like this for a long time! 🙏

    • @RexJonesII
      @RexJonesII 3 месяца назад

      You're Welcome @tomaspacifico 👍

  • @TheDiabetic09
    @TheDiabetic09 2 месяца назад +1

    Great course, very easy to understand. Thank you!

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Thanks @TheDiabetic09 👍

  • @suleymantkayir
    @suleymantkayir Месяц назад +1

    Thank you for this amazing video 🙏

    • @RexJonesII
      @RexJonesII Месяц назад

      You're Welcome @suleymantkayir

  • @makesushi
    @makesushi 4 месяца назад +2

    Great video and great instructor !

    • @RexJonesII
      @RexJonesII 4 месяца назад

      Thanks @makesushi 👍 The video is designed to start automating an application from Day 1

  • @satvik7053
    @satvik7053 4 месяца назад +4

    Needed this rn!!:)

    • @RexJonesII
      @RexJonesII 4 месяца назад

      I hope it helps @satvik7053

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 4 месяца назад +3

    Excelent! Excellent! Excellent !

    • @RexJonesII
      @RexJonesII 4 месяца назад

      Thanks @nadetdevfullstack7041 👍

  • @aymanjamal953
    @aymanjamal953 Месяц назад +1

    Bingoooooooooo 😍😇

  • @pannina.
    @pannina. 3 месяца назад +1

    great tutorial! thank you so much!!

    • @RexJonesII
      @RexJonesII 2 месяца назад

      You're Welcome @pannina

  • @viclim289
    @viclim289 3 месяца назад +1

    Omgosh thank you so much !!!!

    • @RexJonesII
      @RexJonesII 2 месяца назад

      You're Welcome @viclim289

  • @TheVintosa
    @TheVintosa 3 месяца назад +2

    It really helps me to realize page object pattern and selenium features and it would be great if you can share how testing api like this course

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Yes, I can create an API course @TheVintosa

    • @TheVintosa
      @TheVintosa 2 месяца назад

      @@RexJonesII wow, thanks 👍

  • @madbash-406
    @madbash-406 4 месяца назад +1

    Thanks for the effort

    • @RexJonesII
      @RexJonesII 4 месяца назад +1

      You're Welcome @madbash-406 👍Thank You

  • @kevineleven5896
    @kevineleven5896 25 дней назад +1

    Hi, thank you so much for tutorial, never knew I could learn Selenium easily as you explained. I really appreciate your help! Just a quick question tho, how do I run all the tests from different packages the same time? or is it designed to run tests per class only?

    • @yashpandey7
      @yashpandey7 25 дней назад +1

      you can use testing frameworks like JUnit or TestNG to create a test suite that includes tests from multiple packages

    • @RexJonesII
      @RexJonesII 23 дня назад

      @@yashpandey7 Yes, you're right. In this tutorial, I implement TestNG as the testing framework

    • @RexJonesII
      @RexJonesII 23 дня назад

      Hi @kevineleven5896 you're welcome! To run all tests from different packages, you can right click the package then select Run Test

  • @slota4
    @slota4 4 месяца назад +4

    I have question:
    @BeforeMethod
    public void loadApplication() {
    driver.get(DEMOQA_URL);
    basePage = new BasePage();
    basePage.setDriver(driver);
    setUtilityDriver();
    homePage = new HomePage();
    }
    why the setUtilityDriver(); is used here,
    if above line basePage.setDriver(driver); do the same thing as setUtilityDriver()?

    • @RexJonesII
      @RexJonesII 4 месяца назад +2

      That's a great question @slota4 👍 I implemented setUtilityDriver() in the baseTest class because only implementing basePage.setDriver(driver) would return NullPointerException. The program returns an exception after calling a method from a Utility class that utilizes the driver.

  • @grafix993
    @grafix993 3 месяца назад +1

    Great video! could you do Cypress or Playwright next?

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Thanks @grafix993 👍Yes, I know Playwright

  • @ells101
    @ells101 18 дней назад +1

    @rexjonesII
    1:28:34 You cannot create an instance of basepage as basepage is abstract. Im losing my mind here, did you just change the class to not be abstract without showing us?!

    • @RexJonesII
      @RexJonesII 10 дней назад

      Hi @ells101, abstract was removed at video mark 46:19 I also explain the benefits of keeping abstract and why you cannot create an instance of BasePage

  • @ekinaly
    @ekinaly Месяц назад +1

    I'm not sure if I can explain it, but my question is this
    Sometimes we used By.id() and sometimes By.xpath() to find the element.
    I don't understand what to look for when choosing between them, does it have to be a unique path name?

    • @kevineleven5896
      @kevineleven5896 25 дней назад +1

      From what I understand, you should first look for id, and verify if the id is unique. If it is not then you can try using xpath. And yes I believe it has to be a unique path name because you are trying to find that specific element.

    • @yashpandey7
      @yashpandey7 25 дней назад +1

      @@kevineleven5896 Correct , id attribute should be your first choice due to its speed and reliability but When the element does not have a unique id or when you need to locate elements based on more complex criteria.

    • @RexJonesII
      @RexJonesII 23 дня назад

      I agree with the previous replies. id is the best attribute value in the DOM. If available then implement Selenium id locator. If it's not available in the DOM then you can use another Selenium locator. Here's my playlist that shows how to implement xpath, cssSelector, and relative locators ruclips.net/p/PLfp-cJ6BH8u_sG_mDFkOjzm2c6fFWudh9

  • @ksvijayan06
    @ksvijayan06 4 месяца назад

    Nowadays QA profiles are underpaid in my project developer create the automation framework and as a tester we only run the framework at time of regression😢
    Freshers don't go with QA for better pay, created side income using freelancing platform learn MERN stack this is the best choice

    • @baatimama2494
      @baatimama2494 Месяц назад

      those are SDETs or automation specialists who make frameworks . These frameworks are made keeping testing principals in mind so mostly done by a tester who specializes test development.

  • @Ricalrax
    @Ricalrax Месяц назад +1

    How do I get the Inspector Tab? I only have Console and Network? in the chrome dev tools

    • @RexJonesII
      @RexJonesII Месяц назад

      You can use short cut F12 then select Elements

  • @Fx_Tchi
    @Fx_Tchi 4 месяца назад +2

    • @RexJonesII
      @RexJonesII 4 месяца назад

      Thanks @Fx_Tchi 👍

  • @robadub7141
    @robadub7141 2 месяца назад +1

    Is there a problem with using copy full xpath when finding an element?

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Hi @robadub7141 sometimes copy full xpath can create a flaky Selenium locator. It's best to create a custom locator

    • @yashpandey7
      @yashpandey7 Месяц назад

      I don't think so but this was a tutorial how to exactly get the xpath .

  • @shamstabrez2986
    @shamstabrez2986 4 месяца назад +1

    plz do a complete python dsa course just like u guyz have done for java

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Hi @shamstabrez2986 I know Python with Selenium as well using PyTest Framework

  • @personalaccount1515
    @personalaccount1515 4 месяца назад +7

    PLS talk more about Java

    • @TechTalkwithATM
      @TechTalkwithATM 4 месяца назад

      In a separate course?

    • @personalaccount1515
      @personalaccount1515 4 месяца назад +1

      @@TechTalkwithATM I mean in general, a course of modern(17+) Java could be an good idea.

    • @RexJonesII
      @RexJonesII 4 месяца назад +1

      Check out these Java courses from Free Code Camp www.youtube.com/@freecodecamp/search?query=Java

    • @personalaccount1515
      @personalaccount1515 4 месяца назад +1

      @@RexJonesII there is something similar but for Jakarta EE?

  • @ivano8
    @ivano8 4 месяца назад +1

    This was great but anything about shadow roots?

    • @RexJonesII
      @RexJonesII 4 месяца назад +1

      Thanks @ivano8 👍This video course does not cover Shadow Roots but here's my Shadow Roots Playlist
      ruclips.net/p/PLfp-cJ6BH8u_MvNXdpHtc-0Q1uMCWb9dM

  • @Md_areef_uddin
    @Md_areef_uddin 4 месяца назад +2

    Thanks FCC

  • @iScreem1
    @iScreem1 Месяц назад

    If the pom.xml file doesn't get automatically generated use another jdk version instead.

  • @sarnendusarkar1872
    @sarnendusarkar1872 2 месяца назад +1

    How did you get the pom.xml?

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Hi @sarnendusarkar1872 The pom.xml file is usually available after creating a project. If you have IntelliJ IDE then you can press CTRL + SHIFT + N and select Files. In the search bar, type pom.xml to see the file

  • @martinmarkov2392
    @martinmarkov2392 28 дней назад

    Learn Playwright ❤

  • @Anmol_Kamo
    @Anmol_Kamo 19 дней назад

    bros creating a new package everytime there is a new function

    • @RexJonesII
      @RexJonesII 2 дня назад +1

      Hi @Anmol_Kamo,
      The tutorial is based on Selenium using Java. What we call functions in other programming languages are called methods in Java.
      The new packages are created to organize the Automation Project to copy the Test Application. In a real world industry application, the automation project has many methods in the same class and package because most applications has many web pages.
      My goal was to create an automation tutorial that reflects an industry application.

  • @demonboy7777
    @demonboy7777 Месяц назад +1

    He really needs to show his steps better. I've wasted the last half hour figuring out how to get to environment variables and pasting the bin. He just mentions it off hand like its nothing instead of caring to take the time to show the full process

  • @personalaccount1515
    @personalaccount1515 4 месяца назад +2

    First

  • @Pantelisb1984
    @Pantelisb1984 3 месяца назад +1

    it didn't fail mine even without scrolling to the element

    • @RexJonesII
      @RexJonesII 2 месяца назад

      That's good @Pantelisb1984 👍

  • @shashankparashar1954
    @shashankparashar1954 4 месяца назад

    I request to freecodecamp team can you make a course on verilog hdl.. thanks..

  • @kranthikumar6816
    @kranthikumar6816 4 месяца назад +1

    please upload a postman videos

  • @s.sanjaykumar5402
    @s.sanjaykumar5402 4 месяца назад +3

    Please teach POSTMAN API

  • @kshitij5563
    @kshitij5563 4 месяца назад +1

    Bet

  • @dclxviclan
    @dclxviclan 4 месяца назад +1

    😀😀😃😆😅🤣❤❤💯💬

  • @sproutboot
    @sproutboot 4 месяца назад

    Yo

  • @homaassal2794
    @homaassal2794 4 месяца назад +18

    Don't waste your time with automation anymore. I was an automation architect for 10 years and worked in the financial industry. This is no longer a sought after skill. For me however I was able to build my finances during those years and establish my own business. Nowadays own a few gentlemen clubs and don't even think about going back to work for others. Having said that however I still build a lot of automation framework just to brush up on my skills because I really enjoy it

    • @V4dk4n
      @V4dk4n 4 месяца назад +5

      Hi, sry but got me interested.
      How does this gentlemens club work in practice?
      What they pay? Who can get in the club? What do they get in return? How much did you invest in the first one?

    • @homaassal2794
      @homaassal2794 4 месяца назад

      @@V4dk4n you need to do your own research but generally speaking owning any business has its own challenges. On the bright side you never worry about losing your job. So it's a tradeoff

    • @Jonny-tr9qo
      @Jonny-tr9qo 4 месяца назад

      Tru

    • @nobody7638
      @nobody7638 4 месяца назад +7

      what a boatload of sh*t... 😂

    • @homaassal2794
      @homaassal2794 4 месяца назад +1

      @@nobody7638 😂😂😂 lay down the dope pipe and head back out to bed

  • @TommyFink-y6c
    @TommyFink-y6c 3 месяца назад

    Jackson Ruth Jackson Michelle Allen Carol

  • @salonsospain
    @salonsospain 4 месяца назад

    179

  • @hablemosdefe7580
    @hablemosdefe7580 4 месяца назад

    Hi .l am a beginner studying cybersecurity .lf l make mistake sorry l speak Spanish and l learn English.

  • @salonsospain
    @salonsospain 4 месяца назад

    72850

  • @godfatheryo9722
    @godfatheryo9722 7 дней назад

    NOT FOR BIGINNERS

  • @PrettyThings00
    @PrettyThings00 2 месяца назад +1

    intellij is not free

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Hi @PrettyThings00 it's 2 IntelliJ versions (Ultimate & Community). Scroll down the page and select the free Community Edition www.jetbrains.com/idea/download/?section=windows

    • @rottenwormeaten7897
      @rottenwormeaten7897 27 дней назад

      Idea community edition

    • @kevineleven5896
      @kevineleven5896 25 дней назад

      Perhaps you have downloaded the premium version that has a 30-day free trial. I had experienced the same, I just downloaded the community edition which is free.

  • @xQri1
    @xQri1 3 месяца назад +1

    i have this error org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@id='app']//h5[text()='Forms']"}
    (Session info: chrome=129.0.6668.59) wheen i try to execute Javascriptest methode

    • @RexJonesII
      @RexJonesII 2 месяца назад

      Did you scroll to Forms before attempting to click Forms? If so check out my source code on GitHub github.com/RexJonesII/FreeCodeCampSeleniumJava/blob/master/src/main/java/com/demoqa/pages/HomePage.java

  • @paulmax9155
    @paulmax9155 Месяц назад

    My code doesn't work without `main` method:
    public static void main(String[] args) {
    SeleniumTest_1 test = new SeleniumTest_1();
    test.setUp(); // Initializes driver
    try {
    test.testLoggingIntoApp(); // Runs test
    } catch (InterruptedException exception) {
    throw new RuntimeException(exception);
    }
    test.tearDown(); // Closes driver
    Timeline: ruclips.net/video/QQliGCtqD2w/видео.html