selenium使用问题,火狐提示,找不到文件
package com.test;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 test {
private Selenium selenium;
@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*firefox D:\\Program Files\\Mozilla Firefox\\firefox.exe", "http://172.16.129.191:3838/vcpe-manage-web/");
selenium.start();
}
@Test
public void testTest() throws Exception {
selenium.open("/vcpe-manage-web/");
selenium.type("id=password", "123456");
selenium.click("link=Login");
selenium.waitForPageToLoad("30000");
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}
火狐版本46.0.1
selenuim 2.4.5
浏览器的版本太高 浏览器不要自动升级
页:
[1]