Selenium WebDriver Tutorial #11 - Understand WebDriver Interface

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

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

  • @rizishere19
    @rizishere19 8 месяцев назад +1

    Very effective and clear explanation of concepts. I have taken few automation testing courses before but these basic concepts are usually missed and it makes a lot of difference. You are a very good mentor and have great communication skills.

  • @mohammadzonaid8998
    @mohammadzonaid8998 2 года назад +2

    A very effective mentor! I really appreciate your teaching method.

  • @harishkakumani2206
    @harishkakumani2206 2 года назад +1

    Your are teaching the way awesome... Easy learning

  • @andergarcia1115
    @andergarcia1115 Год назад +1

    this course is amazing, the best of the best, i know that the world of software testing is very broad but i aspire with this course to have a good foundation. I come from programing in C# is not very different from java so i think i'm fine for that part.

  • @deepabista7707
    @deepabista7707 2 года назад +1

    awesome, i learnt new things here as i am new to selenium webdriver.

  • @manoj_mafiosi
    @manoj_mafiosi Год назад +2

    Selenium WebDriver Tutorial - Notes
    1. WebDriver Interface in Selenium:
    - Selenium WebDriver allows interaction with browsers to perform actions like clicking elements and typing in input boxes.
    - To create an object of a class in Java, use the "new" keyword with the class name (e.g., "new ChromeDriver()").
    - ChromeDriver is a WebDriver implementation for controlling a local Chrome browser.
    2. WebDriver Interface and Implementing Classes:
    - WebDriver is an interface, while ChromeDriver, FirefoxDriver, EdgeDriver, etc., are classes that implement it.
    - Each browser driver is an implementing class of the WebDriver interface.
    - The reason for using the WebDriver interface is to execute the same code on multiple browsers without duplicating it.
    3. Handling Multiple Browsers with WebDriver Interface:
    - To execute code on different browsers, use external configurations (e.g., CSV, Excel) to store browser details.
    - Read the browser configuration from the external file and choose the appropriate driver class accordingly.
    - By using the WebDriver interface, you can create an object of the specific browser driver based on the configuration.
    4. Leveraging JavaDoc:
    - The JavaDoc provides documentation for Selenium WebDriver, interfaces, and classes.
    - Interfaces, like WebDriver, cannot be instantiated directly, but implementing classes like ChromeDriver can.
    - The WebDriver interface defines methods like getTitle(), getCurrentUrl(), etc., while implementing classes provide additional functionalities.
    5. Best Practices:
    - Use the WebDriver interface to create an object of the browser driver to facilitate switching between browsers.
    - By taking the reference of the WebDriver interface, you can use the same code for different browsers.
    - Utilize external configuration files to store browser details and execute test cases on multiple browsers seamlessly.

  • @TECHJIR123-xy2
    @TECHJIR123-xy2 2 года назад +1

    Fantastic , Everything u teach in deeply thank u so much

  • @lokeshmacharla6322
    @lokeshmacharla6322 2 года назад +1

    sir what about ending brace of login test.The way of teaching of you is awesome no words....love you somuch.

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

    Thank you so much for this wonderful series

  • @islamhedaetul
    @islamhedaetul 3 года назад +1

    I am very grateful to you
    Thanks.

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

    Thanks a lot for your great effort

  • @aparajitaj7338
    @aparajitaj7338 3 года назад +2

    I'm not getting nullpointer exception when I don't use WebDriver interface in my code window and code runs smooth.
    But WebDriver interface is required for implementations of this interface directly.

  • @TienTrinh-nr3hx
    @TienTrinh-nr3hx 3 года назад +1

    thank u so much

  • @TienTrinh-nr3hx
    @TienTrinh-nr3hx 3 года назад +1

    thank u so so muchhh ^^

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

    Hello, thank you for your help, i've got juste a question regarding browsers, how can i do if i want to execut Two browsers or more in the same script demonstrated in your video
    Many thank's for help

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

    Thank you for help me to run testcase can you please create one session for parallel test case execution on maven dependency management

  • @vanikaagarwal1899
    @vanikaagarwal1899 Год назад +1

    Hello, Can you please help me?
    I am not able to run the code in chrome and edge, it is running fine in Firefox though.

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

      Hi, were you able to find any solution?
      I am facing the same problem.

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

    When you will publish POM and Hybrid framework tutorials

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

    First video in this series where I just didn't follow things. Almost certainly because I don't know Java which you mentioned. I wonder if it would have actually been better to skip use of WebDriver at this point and then revisit later and go into some Java fundamentals at the same time? Or just cover it off in Java tutorials you mentioned. As it is, I don't think many folks that don't know Java and/or Object Oriented Programming are going to be able to follow this. So might have been better to 'hardcode' a couple of browsers with the caveat that the viewer should also check out your Java and/or WebDriver videos separately.
    To be clear at the 16:30 mark onwards I do follow the solution, but I don't fully understand the interfaces vs classes etc.

    • @Wil825
      @Wil825 Год назад +1

      If you're just going to be writing test cases for one browser then you can use the associated driver. The nice thing about webdriver is that you can create one instance of it and then declare it as whichever driver you need(as shown in the video). This is convenient and you can probably get away with using it just by understanding that the left side of the declaration can be a WebDriver but the right side can never be a WebDriver. At the end of the day though it's not necessary if you are only running the automation on a specific browser.

    • @tylerriojas6250
      @tylerriojas6250 Год назад +1

      well essentially JAVA follows the same OOP fundamentals like parent child relationships. I believe if you are lost at this point that learning fundamentals of OOP would really help. If not you will get frustrated.
      Parent Child relationships and scope are important to understand as well as sequence , selection and iteration.
      These are things I learned in college and can be like figuring out a logic puzzle.

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

      @@tylerriojas6250 Thanks for the advise. Will check out some OOP tutes and get my head around the fundamentals. Thanks again for these tutorials. 👍

    • @tylerriojas6250
      @tylerriojas6250 Год назад +1

      @@GrumpyStoic yup! Lots of Google searches but the good news is software engineers seem very helpful and collaborative. The information is there it can just be a lot at first. I picked up effective Java books but in college started with intro to programming and Then Java and html.
      Once you get the logic down like how the computer sees it, it makes more sense.

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

    driver.get (url); is not working, it is just opening the browser not he url..? When i searched online it is saying it is a selenium defect, but this problem is occuring only after applying if else logic..? Any solution ?

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

    how can i make an array of chrome driver for handling multiple instances?

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

    Can someone please send link where we can read file from excel sheet for browser and can open browser accordingly

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

    not multiple tabs. multiple instances. if i have more than one user in Chrome(not in whole p.c) only in chrome if i have hundred users then i need to write driver1 driver2 ...... i downt want to do that i want to make an array.

    • @nayannareshgourkar7362
      @nayannareshgourkar7362 3 года назад +1

      try to create array of driver objects..
      ChromeDriver arr[] =new ChromeDriver[100];
      for(int i=0;i

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

    i need help in verification of email after signup

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

    I went to use the Tor brower.
    And gave this error know how to help me please?
    Good ....
    What is this please ...
    The method startProfile (FirefoxProfile, File, String) is undefined for the type FirefoxBinary ????

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

    i got stuck , my xpath is not working