Skip to main content

Integrate/Setup Selenium Webdriver in eclipse

In this blog we are going to learn how to install Selenium webdriver in eclipse.

Step 1:-Install Java and Eclipse on your computer
 
  1. To Download and install latest version of Java .Click here
  2. Download java as per your system configuration.
  3. After download completed , run the .exe to install Java on your machine.
  4. If somethings wrongs to install java Please follow this link. Click here
Step 2 :- Install Eclipse  
  1. Download "Eclipse IDE for Java Developers".Click here 
  2. There are several releases of Eclipse.I would suggest install Eclipse Luna due to maven inbuilt feature.  If your system is 32 bit then click on 32 bit else click on 64 bit .
  3. After download completed extract downloaded  file.

  4. To run Eclipse IDE click on eclipse exe file.

Step 3 - Download the Selenium Java Client Driver
  1. Download Selenium standalone server and Selenium java. Click here

  2. Download highlighted  jar and extract contents of this ZIP file.
  3. Download  selenium for other programming language. Click here

Step 4 : Configure Eclipse IDE with Selenium WebDriver

  1. Launch the "eclipse.exe" file inside the "eclipse" folder.


  2.  Create a new java project through File > New > Java Project. Name the project SeleniumFirst and click on finish button.


  3. Right-click on the newly created project and Select New > Package, and name that package as SeleniumPackage.
  4. Create a new Java class under newpackage by right-clicking on it and then selecting- New > Class, and then name it as "FirstClass".
  5. Right-click on the newly created project and Select New > folder, and name that as Lib and click on finish.
    XL
  6. Copy all the  Selenium jars from downloaded selenium folder then paste into Lib folder.
     
    L
     

  7. Right click on all the jars and click on Build path. 
     

  
Program to launch google using selenium webdriver in eclipse:-


 








Comments

  1. Borgata Hotel Casino & Spa - Mapyro
    Results 1 구미 출장마사지 - 50 of 3000 — 세종특별자치 출장안마 Borgata Hotel Casino & Spa For travelers looking for an unbeatable casino 의왕 출장마사지 or 대구광역 출장안마 resort, the Borgata 동해 출장마사지 Hotel Casino & Spa offers something

    ReplyDelete

Post a Comment

Popular posts from this blog

Handle radio button & Check Boxes in Selenium

The main difference between Radio button and Checkbox is that, using radio button we will be able to select only one option from the options available. whereas using checkbox, we can select multiple options. Selenium WebDriver supports Radio Button and Radio Group controls using the WebElement class. We can select and deselect the radio buttons using the click() method of the WebElement class and check whether a radio button is selected or deselected using the isSelected() method. Before performing the click on the Radio buttons or check boxes we will have to verify follwing scenarios :- If Radio button or Checkbox is displayed on the webpage If Radio button or Checkbox is enabled on the webpage Check the default selection of the Radio button or Checkbox We use predefined methods present in selenium to handle check Box and Radio  button :- isDisplayed() isEnabled() isSelected() 1.  isDisplayed () this method returns a Boolean value, if it returns t

How To Send Report In Mail Using Java In Selenium Web driver

Today we will share code how to send any type of selenium report in mail using java. For sending the email using JavaMail API, you need to load the two jar files: mail.jar activation.jar package SeleniumNew; import java.util.Properties; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.mail.*;  import javax.mail.internet.*;  public class SendEmail {     public static void main(String[] args)     {                 String host="smtp.gmail.com";          final String user="ashishxx@gmail.com";//change accordingly          final String password="XXX";//change accordingly                    /*String[] to={"AshishXX@gmail.com","Ashishxxx@gmail.com"};           String[] cc={};           String[] bcc={};         */           String to="ashishxx@gmail.com";//change accordingly                     //Get the session object            Properties props = new

Appium architecture (How Appium works internally)

Appium Architecture  A ppium is a cross-platform automation tool, API of it supports both OS (Android and iOS) test scripts.It is tested on simulators (iOS,), emulators (Android), and real devices (iOS, Android)   Appium is an HTTP server written in Node.js that creates and handles WebDriver sessions.The Appium web server follows the same approach as the Selenium WebDriver, which receives HTTP requests from client libraries through JSON and then handles those requests in different ways   JSON wire protocol The JSON wire protocol  ( JSONWP ) is a transport mechanism created by WebDriver developers. This wire protocol is a specific set of predefined, standardized endpoints exposed via a RESTful API.   Appium implements the Mobile JSONWP, the extension to the Selenium JSONWP, and it controls the different mobile device behaviors, such as installing/uninstalling apps over the session Let’s have a look at some of the endpoints from the API which are used to interact with