.....selenium-remote-control-1.0.3selenium-server-1.0.3
下面把我們錄制的腳本導(dǎo)出并放置到入出。
	
將代碼出為junit 4 類型的代碼,我這里保存為test.java 并復(fù)制到我的項目中。
Src文件夾下的com.test包中:
	
代碼內(nèi)容如下:
package com.test;
	import com.thoughtworks.selenium.*;
	import org.junit.After;
	import org.junit.Before;
	import org.junit.Test;
	import java.util.regex.Pattern;
	public class test extends SeleneseTestCase {
	    @Before
	    public void setUp() throws Exception {
	        selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.baidu.com/");
	//這里如果運行不了,修改瀏覽器為 *firefox  或  *iexplore
	        selenium.start();
	    }