RC

2013-02-15 3 views
-1
을 사용하여 스크립트를 만드는 동안 selenium-server-standalone-2.0rc2를 사용하는 방법
package com.html; 

import com.thoughtworks.selenium.DefaultSelenium; 
import com.thoughtworks.selenium.Selenium; 

import junit.framework.TestCase; 

public class Html5 extends TestCase{`enter code here` 
    Selenium selenium1; 
    public void setUp() 
    { 
     selenium1=new DefaultSelenium("localhost",4444,"*firefox","http://live.com"); 
     selenium1.start(); 
    } 
} 

com.thoughtworks.selenium.DefaultSelenium에 나타나는 오류입니다. 및 DefaultSelenium ("localhost", 4444, "* firefox", "http://live.com"); 선.RC

좋습니다.

+0

** 어떤 오류 ** ?! – Arran

답변

1

먼저 다음 enter code here 문자열이 무엇

?

가 둘째 :

import com.thoughtworks.selenium.DefaultSelenium;에서와 new DefaultSelenium에 오류가 있으면, 그것은 확실히의 항아리가 클래스 경로

selenium-server-standalone 셀레늄 서버 클래스를 포함하지 않을 수 있습니다,하지만 클라이언트가 아닌 것들, where DefaultSelenium is. 당신은 당신의 클래스 경로에 클라이언트 항아리를 가지고해야, 그게 내가

0

난 당신이

selenium1 = new DefaultSelenium("localhost",4444,"*firefox","http://live.com"); Goes like 
selenium1 = new DefaultSelenium("localhost",4444,"*firefox C:\Documents and Settings\Mozilla Firefox\firefox.exe","http://live.com"); 

에 한번 당신의 Constructor..So에 firefox.exe하는 경로를 줄 필요가 있다고 생각 생각이 버전 selenium2-java입니다 한 번.