2011-11-21 2 views

답변

1

에 부가 기능 :

FirefoxProfile profile = new FirefoxProfile(); 
profile.addExtension(new File(ClassLoader.getSystemResource("path/to/.xpi").getFile())); 
WebDriver driver = new FirefoxDriver(profile); 

나는 크롬 위해 뭔가를 설정하는 것은 매우 유사하다고 내기 기꺼이. 참고 위의 셀레늄에 대한 RC 지침 2.

편집이다 :

당신은 (프로파일 매니저에서 프로파일을 생성 한 후)와 같은 서버를 실행해야합니다 :

java -jar selenium-server.jar -firefoxProfileTemplate “<Selenium Profile Directory>” 

당신을 자세한 지침은 here을 참조하십시오.

+0

셀레늄 RC로 가능합니까? – sasikumar

관련 문제