无法访问Selenium.SetSpeed()方法
问题描述:
无法访问任何方法在硒类无法访问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");
}
}
当我说硒点,智能感知不工作,而无法访问任何的方法。 {
答
您尚未提供任何网址。两个硒命令之间提供1秒的时间延迟。我不知道你在做什么。
您是否已将selenium-java.jar添加到您的构建路径中? – 2012-04-27 18:03:26