Demo_selenium1.Demo_selenium1.java Source code

Java tutorial

Introduction

Here is the source code for Demo_selenium1.Demo_selenium1.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Demo_selenium1;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

/**
 *
 * @author srijana
 */
public class Demo_selenium1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        //Here we initialize the firefox webdriver
        WebDriver firefoxDriver = new FirefoxDriver();

        //Open the url which we want in firefox
        firefoxDriver.get("Http://www.google.com");
    }

}