锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
2 鏀瑰彉鏁翠釜myEclipse宸ヤ綔絀洪棿鐨勭紪鐮佹牸寮?span class="Apple-converted-space">
1錛?nbsp; myeclipse->window->preferences->General->workspaceTypes
2錛?nbsp; 鏀瑰彉鏂囨湰鏂囦歡緙栫爜鏍煎紡涓簎tf-8
3 鏀瑰彉鏁翠釜鏂囦歡綾誨瀷鐨勭紪鐮佹牸寮?span class="Apple-converted-space">
1錛?nbsp; eclipse->window->preferences->General->Content Types
2錛?nbsp; 鎵懼埌瑕佷慨鏀圭殑鏂囦歡鐨勭被鍨嬶紙JAVA,JSP絳夌瓑錛夛紝鍦ㄤ笅闈㈡湁涓狣efault encoding,鍦ㄨ緭鍏ユ涓緭鍏BK 鎴朥TF-8
3錛?nbsp; 鐐瑰嚮Update
4錛?nbsp; 鐐瑰嚮OK
5錛?nbsp; 閲嶅惎eclipse
]]>
Please add the directory containing ''firefox.exe'' to your PATH environment
variable, or explicitly specify a path to Firefox like this:
*firefox c:\blah\firefox.exe
鍘熷洜錛氭壘涓嶅埌firefox錛堢伀鐙愪笉鏄粯璁ゅ畨瑁呬綅緗嚜宸辨崲浜嗕綅緗殑錛夛紝涓嶈兘鎵撳紑嫻忚鍣?br />瑙e喅鏂規錛?br />鏂規硶涓錛氳緗幆澧冨彉閲忥紝灝嗙伀鐙愮殑鍦板潃鏀捐繘path鍙橀噺涓?br />鏂規硶浜岋細灝嗙伀鐙愮殑璺緞鍐欒繘鏉ワ紝娉ㄦ剰璺緞鐨刓瑕佺敤\\,鍏朵腑涓涓猏鏄漿涔夌殑鎰忔?br />
鍗充笅闈㈢殑"*firefox"鏀逛負 "*firefox D:\\study\\selenium\\Firefox\\firefox.exe"
鍋囧鎴戜滑闇瑕佺‘瀹氳皝鍗犵敤浜嗘垜浠殑9050绔彛
1銆乄indows騫沖彴
鍦╳indows鍛戒護琛岀獥鍙d笅鎵ц錛?/p>
C:\>netstat -aon|findstr "9050"
TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016
C:\>tasklist|findstr "2016"
tor.exe 2016 Console 0 16,064 K
寰堟竻妤氭槸錛宼or鍗犵敤浜?095绔彛
鍦ㄨ繖閲岋紝鎴戜滑鏌ョ湅4444绔彛鍗犵敤錛屽涓嬪浘鎵紺?br />鍙?img border="0" alt="" src="http://www.aygfsteel.com/images/blogjava_net/dieyaxianju/鏌ョ湅4444绔彛鍗犵敤.png" width="650" height="162" />
java.lang.RuntimeException: Could not contact Selenium Server; have you started it on 'localhost:4444' ?
Read more at http://seleniumhq.org/projects/remote-control/not-started.html
Connection refused: connect
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:104)
鍘熷洜錛歴elenium server鏈惎鍔紝鎴戞妸鍚姩欏甸潰cmd鍏充簡
瑙e喅鏂規錛氬惎鍔╯elenium server錛歫ava -jar selenium-server-standalone-2.44.1.jar
銆銆鎶妉ibs鏂囦歡澶逛笅鐨刯ar鍖呭叏閮ㄦ坊鍔犱笂錛屽啀娣誨姞selenium-java-2.33.0鍜宻elenium-java-2.33.0-srcs錛宻elenium-server-standalone
d.娣誨姞瀹屼箣鍚庣洰褰曠粨鏋勫涓嬪浘錛屽浜哛eferenced Libraries,榪欓噷灝辨槸涓婇潰閭d竴姝ユ坊鍔犺繘鍘葷殑jar鍖?br />