|
代码清单如下,但是运行时候报上面的错误,请问怎么解决呢
- package login;
- import org.testng.annotations.AfterMethod;
- import org.testng.annotations.AfterSuite;
- import org.testng.annotations.AfterTest;
- import org.testng.annotations.BeforeClass;
- import org.testng.annotations.BeforeMethod;
- import org.testng.annotations.BeforeSuite;
- import org.testng.annotations.BeforeTest;
- import org.testng.annotations.Test;
- import com.thoughtworks.selenium.*;
- import com.beust.testng.*;
- import java.util.regex.Pattern;
- import sun.io.*;
- import sun.nio.cs.ext.*;
- public class Firefox extends SeleneseTestNgHelper {
- @BeforeClass
- public void setUp() throws Exception {
- selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.csdn.net/");
- selenium.start();
- }
- @Test
- public void test222() throws Exception {
- //selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.csdn.net/");
- //selenium.start();
- selenium.open("http://www.163.com");
- selenium.click("link=abc");
- selenium.stop();
- }
-
-
- }
复制代码 |
|