0
無法訪問任何方法在硒類無法訪問Selenium.SetSpeed()方法
import org.openqa.selenium.server.SeleniumServer;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;
public class login
{
public Selenium selenium;
public SeleniumServer seleniumserver;
@Before
public void setUp() throws Exception
{
seleniumserver=new SeleniumServer();
selenium=new DefaultSelenium("localhost",4444,"*iexplore","http://");
selenium.start();
}
@Test
public void testlogin() throws Exception
{
selenium.setSpeed("2000");
}
}
當我說硒點,智能感知不工作,而無法訪問任何的方法。 {
您是否已將selenium-java.jar添加到您的構建路徑中? – 2012-04-27 18:03:26