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.
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.
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.
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.
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
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.
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.
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 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.
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 ?
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.
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 ????
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.
A very effective mentor! I really appreciate your teaching method.
Your are teaching the way awesome... Easy learning
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.
awesome, i learnt new things here as i am new to selenium webdriver.
Glad it was helpful!
Keep watching for more videos.
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.
Fantastic , Everything u teach in deeply thank u so much
Thanks and welcome.
Keep watching for more videos!
sir what about ending brace of login test.The way of teaching of you is awesome no words....love you somuch.
Thank you so much for this wonderful series
You're welcome. 😊
Keep watching for more videos and tutorials.
I am very grateful to you
Thanks.
Thanks a lot for your great effort
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.
thank u so much
thank u so so muchhh ^^
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
Thank you for help me to run testcase can you please create one session for parallel test case execution on maven dependency management
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.
Hi, were you able to find any solution?
I am facing the same problem.
When you will publish POM and Hybrid framework tutorials
Hi Hemangi, They should be available in few weeks. Regards,Manish
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.
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.
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.
@@tylerriojas6250 Thanks for the advise. Will check out some OOP tutes and get my head around the fundamentals. Thanks again for these tutorials. 👍
@@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.
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 ?
how can i make an array of chrome driver for handling multiple instances?
Can someone please send link where we can read file from excel sheet for browser and can open browser accordingly
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.
try to create array of driver objects..
ChromeDriver arr[] =new ChromeDriver[100];
for(int i=0;i
i need help in verification of email after signup
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 ????
i got stuck , my xpath is not working
.Exc ka path copy pest karo