Friday, 13 February 2015

TASK 1

LOADING A WEB PAGE

     For testing a web based application we have to load the website first, and then only we can start testing it

             
     import org.openqa.selenium.WebDriver;
     import org.openqa.selenium.firefox.FirefoxDriver;
     public class Testing

        {
             public static void main(String[] args)throws Exception 

             {
                    WebDriver driver = new FirefoxDriver();       
                     driver.get("http://www.google.com/");

             }
        }

Description

     What we done here is loading a page. “get” is the inbuilt function for fetching the webpage. The parameter of the function is the URL here we are loading the page www.google.com. By this we are completed our first task yepiee…..!. Next we are going google a string.

No comments:

Post a Comment