import com.thoughtworks.selenium.DefaultSelenium;
public class Sync
{
/**
* @param args
*/
public static String google() throws Exception
{
DefaultSelenium selenium=new DefaultSelenium("localhost",6666,"*iehta","http://");
selenium.start();
selenium.open("http://mail.in.com");
selenium.windowMaximize();
selenium.type("f_id", "seleniumforum_Nageswar");
selenium.type("f_pwd", "selenium");
// selenium.setTimeout("100000");
selenium.click("//input[@value='' and @type='submit']");
//Thread.sleep(10000);
selenium.waitForPageToLoad("130000");
selenium.click("link=Sign out");
selenium.waitForPageToLoad("130000");
selenium.chooseCancelOnNextConfirmation();
selenium.chooseOkOnNextConfirmation();
return "pass";
}
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
google();
}
}
/**
* @param args
*/
public static String google() throws Exception
{
DefaultSelenium selenium=new DefaultSelenium("localhost",6666,"*iehta","http://");
selenium.start();
selenium.open("http://mail.in.com");
selenium.windowMaximize();
selenium.type("f_id", "seleniumforum_Nageswar");
selenium.type("f_pwd", "selenium");
// selenium.setTimeout("100000");
selenium.click("//input[@value='' and @type='submit']");
//Thread.sleep(10000);
selenium.waitForPageToLoad("130000");
selenium.click("link=Sign out");
selenium.waitForPageToLoad("130000");
selenium.chooseCancelOnNextConfirmation();
selenium.chooseOkOnNextConfirmation();
return "pass";
}
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
google();
}
}