@@ -0,0 +1,2263 @@
+import org.testng.annotations.BeforeMethod;%0Aimport org.testng.annotations.AfterMethod;%0Aimport org.testng.annotations.Test;%0Aimport static org.testng.Assert.*;%0A%0Aimport java.util.concurrent.TimeUnit;%0Aimport java.util.Date;%0Aimport java.io.File;%0Aimport org.openqa.selenium.support.ui.Select;%0Aimport org.openqa.selenium.interactions.Actions;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0Aimport org.openqa.selenium.*;%0Aimport static org.openqa.selenium.OutputType.*;%0A%0Apublic class GroupCreationTests %7B%0A    FirefoxDriver wd;%0A    %0A    @BeforeMethod%0A    public void setUp() throws Exception %7B%0A        wd = new FirefoxDriver();%0A        wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);%0A        wd.get(%22http://localhost/addressbook/index.php%22);%0A        wd.findElement(By.name(%22user%22)).click();%0A        wd.findElement(By.name(%22user%22)).clear();%0A        wd.findElement(By.name(%22user%22)).sendKeys(%22admin%22);%0A        wd.findElement(By.name(%22pass%22)).click();%0A        wd.findElement(By.name(%22pass%22)).clear();%0A        wd.findElement(By.name(%22pass%22)).sendKeys(%22secret%22);%0A        wd.findElement(By.xpath(%22//form%5B@id='LoginForm'%5D/input%5B3%5D%22)).click();%0A    %7D%0A    %0A    @Test%0A    public void testGroupCreation() %7B%0A        wd.findElement(By.linkText(%22groups%22)).click();%0A        wd.findElement(By.name(%22new%22)).click();%0A        wd.findElement(By.name(%22group_name%22)).click();%0A        wd.findElement(By.name(%22group_name%22)).clear();%0A        wd.findElement(By.name(%22group_name%22)).sendKeys(%221234%22);%0A        wd.findElement(By.name(%22group_header%22)).click();%0A        wd.findElement(By.name(%22group_header%22)).clear();%0A        wd.findElement(By.name(%22group_header%22)).sendKeys(%22header%22);%0A        wd.findElement(By.name(%22group_footer%22)).click();%0A        wd.findElement(By.name(%22group_footer%22)).clear();%0A        wd.findElement(By.name(%22group_footer%22)).sendKeys(%22footer%22);%0A        wd.findElement(By.name(%22submit%22)).click();%0A        wd.findElement(By.linkText(%22group page%22)).click();%0A    %7D%0A    %0A    @AfterMethod%0A    public void tearDown() %7B%0A        wd.quit();%0A    %7D%0A    %0A    public static boolean isAlertPresent(FirefoxDriver wd) %7B%0A        try %7B%0A            wd.switchTo().alert();%0A            return true;%0A        %7D catch (NoAlertPresentException e) %7B%0A            return false;%0A        %7D%0A    %7D%0A%7D%0A

update 1st test