Download WebDrivers
For FireFox Browser we are using “Geckodriver”
Download Geckodriver from below site
https://github.com/mozilla/geckodrive...
For Chrome Browser we are using “Chromedriver”
Download Chromedriver from below site
https://chromedriver.chromium.org/dow...
Access Website and close browser using WebDrivers
1. Go to Eclipse
In the last session we created a new Java project and added the JAR file
2. Create a separate folder in the project and copy and paste the downloaded webdrivers
3. Add Package
4. Add Class with main class
5. Let’s write the script to open a website and close the Firefox browser
6. Right click and execute the code
7. Browser successfully open, access the website and closed
Today we learned how to access a website in Firefox / chrome and close the browsers successfully using selenium automation..
Please subscribe to our channel WiSdOm for more videos…
Have a nice day…..!!!!!