What is Selenium WebDriver?
What is selenium?
Selenium is an open-source automated testing framework which is used to validate web applications across different browsers and platforms. We can use multiple programming languages like java, c#, python to create test scripts.
What is WebDriver?
WebDriver is a bunch of API (Application programming interface) for DOM (Document Object Model) interaction and Browser control.
How to download selenium webdriver?
Selenium installation is a 3 step process:
Install Selenium Driver File
Open the below link
https://www.selenium.dev/downloads/Go to the Selenium Client & WebDriver Language Bindings section.
Choose your convenient language & clicks on Download link
This download comes as a ZIP file named "selenium-3.14.0.zip".
Configure Eclipse IDE with Webdriver
Launch the "eclipse.exe" file inside the "eclipse" folder
When asked to select for a workspace, just accept the default location.
Create a new project through File > New > Java Project. Name the project as "newproject".
A new pop-up window will open enter details as follow
Project Name
Location to save project
Select an execution JRE
Select layout project option
Click on Finish button
Right-click on the newly created project and Select New > Package, and name that package as "newpackage".
Create a new Java class under newpackage by right-clicking on it and then selecting- New > Class, and then name it as "MyClass"
When you click on Class, a pop-up window will open, enter details as
Name of the class
Click on Finish button
Now selenium WebDriver's into Java Build Path In this step,
Right-click on "newproject" and select Properties.
On the Properties dialog, click on "Java Build Path".
Click on the Libraries tab, and then
Click on "Add External JARs.."
After clicking on Add External JARs, one pop-up window will open and you have to select all 7 JARs into it.
Once done, click the Apply and close button. Now the Referenced library adds in Properties dialog.
Comments
Post a Comment