package com.example.tests;
import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.regex.Pattern;
public class xxx {
private Selenium selenium;
@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost:9080/door/login");
selenium.start();
}
@Test
public void testXxx() throws Exception {
selenium.open("/door/login");
selenium.type("name=captcha_key", "16ns");
selenium.click("css=input.loginbut");
selenium.waitForPageToLoad("30000");
selenium.click("css=div.pageFormContent");
selenium.click("link=模块管理");
selenium.click("id=modulealink2");
selenium.click("//div[@id='jbsxBox2module']/div/div[2]/div[2]/div/table/tbody/tr[4]/td[4]/div");
selenium.click("css=a.edit > span");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.type("name=description", "xxx");
selenium.click("css=div.buttonActive.buttonActiveHover > div.buttonContent > button[type=\"submit\"]");
selenium.click("css=a.button > span");
selenium.click("//div[@id='jbsxBox2module']/div/div[2]/div[2]/div/table/tbody/tr[4]/td[3]");
selenium.click("css=a.edit > span");
selenium.click("css=button.close");
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}
import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.regex.Pattern;
public class xxx {
private Selenium selenium;
@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost:9080/door/login");
selenium.start();
}
@Test
public void testXxx() throws Exception {
selenium.open("/door/login");
selenium.type("name=captcha_key", "16ns");
selenium.click("css=input.loginbut");
selenium.waitForPageToLoad("30000");
selenium.click("css=div.pageFormContent");
selenium.click("link=模块管理");
selenium.click("id=modulealink2");
selenium.click("//div[@id='jbsxBox2module']/div/div[2]/div[2]/div/table/tbody/tr[4]/td[4]/div");
selenium.click("css=a.edit > span");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.click("name=description");
selenium.type("name=description", "xxx");
selenium.click("css=div.buttonActive.buttonActiveHover > div.buttonContent > button[type=\"submit\"]");
selenium.click("css=a.button > span");
selenium.click("//div[@id='jbsxBox2module']/div/div[2]/div[2]/div/table/tbody/tr[4]/td[3]");
selenium.click("css=a.edit > span");
selenium.click("css=button.close");
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}