Articles → SELENIUM → Create your first selenium project

Create your first selenium project






WebDriver class





Create your first selenium project









Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge






Download IEDriverServer





Click to Enlarge


Write your first selenium code




package com.FirstSeleniumProject;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class MyClass {

  public static void main(String[] args) {
    WebDriver driver;
    String service = "IEDriverServer.exe path";
    System.setProperty("webdriver.ie.driver", service);
    driver = new InternetExplorerDriver();
    driver.get("http://google.com/");

  }
}



Output





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Sunday, March 26, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250