我正在用Selenium RC写我的第一个自动化程序&我有几个疑问。请看看示例代码:关于DefaultSelenium类参数构造函数参数的查询?
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;
public class TestGoogle
{
public static void main(String[] args)
{
Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://google.com");
selenium.start();
selenium.open("/");
selenium.windowMaximize();
selenium.windowFocus();
}
}
查询1:因为RC服务器在我的机器上本地运行在第一个参数,我已经通过了“本地主机”。如果rc服务器在远程机器上运行,我将如何通过它。什么是语法?
查询2:在第三个参数中,我通过了“* firefox”。我不明白为什么在程序运行良好而不使用它时使用*?也有可能给绝对路径。我试过了,但它不工作?
请建议, 问候。
等待意见。 – 2013-04-26 11:25:42
5个小时不等很长时间。 – 2013-04-26 23:01:34