import com.thoughtworks.selenium.DefaultSelenium;
public class GoogleSearch {
public static String gs() throws Exception
{
DefaultSelenium selenium=new DefaultSelenium("localhost",1234,"*firefox","http://");
selenium.start();
selenium.setTimeout("1000000");
selenium.open("http://www.google.co.in/");
selenium.windowMaximize();
//selenium.type("gbqfq", "testng");
String s=selenium.getLocation();
System.out.println("The s value is "+s);
//selenium.click("gbqfba");
return "PASS";
}
public static void main(String[] args) throws Exception {
gs();
}
}
public class GoogleSearch {
public static String gs() throws Exception
{
DefaultSelenium selenium=new DefaultSelenium("localhost",1234,"*firefox","http://");
selenium.start();
selenium.setTimeout("1000000");
selenium.open("http://www.google.co.in/");
selenium.windowMaximize();
//selenium.type("gbqfq", "testng");
String s=selenium.getLocation();
System.out.println("The s value is "+s);
//selenium.click("gbqfba");
return "PASS";
}
public static void main(String[] args) throws Exception {
gs();
}
}
No comments:
Post a Comment