2011-06-15 6 views
0

는 상관없이 내가 사용하는 셀레늄 2.XX 버전 웹 드라이버, 나도 같은 컴파일 오류를셀레늄 2.0

얻을 \ 문서 및 설정 \ kondojis.m2 \ 저장소 \ org \ seleniumhq \ selenium \ selenium-firefox-driver \ 2.0b3 \ selenium-firefox-driver-2.0b3.jar; zip 파일

이를 여는 오류 내가 JDK 1.6를 사용하고

<dependency> 
    <groupId>org.seleniumhq.selenium</groupId> 
    <artifactId>selenium</artifactId> 
    <version>2.0rc2</version> 
    <type>pom</type> <i tried with and without type pom> 
</dependency> 

은 메이븐 3.0.1 M Windows에서 메이븐 컴파일러 플러그인 2.3.2 등을 사용하고 내 POM 파일에있는 것입니다 XP

package com.usps.mgo.icoa.UI; 

import static org.hamcrest.CoreMatchers.is; 
import static org.hamcrest.CoreMatchers.not; 
import static org.junit.Assert.assertThat; 

import org.junit.After; 
import org.junit.Before; 
import org.junit.Test; 
import org.openqa.selenium.By; 
import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.WebElement; 
import org.openqa.selenium.firefox.FirefoxDriver; 
import org.apache.log4j.Logger; 
import org.openqa.selenium.firefox.FirefoxProfile; 
import org.springframework.context.support.ClassPathXmlApplicationContext; 
import org.springframework.context.support.ReloadableResourceBundleMessageSource; 

import javax.swing.plaf.basic.BasicInternalFrameTitlePane; 
import java.util.List; 
import java.util.Locale; 

/** 
* Created by IntelliJ IDEA. 
* User: kondojis 
* Date: 2/8/11 
* Time: 5:02 PM 
* To change this template use File | Settings | File Templates. 
*/ 
public class SimulatorTests { 
    private static final Logger logger = Logger.getLogger(SimulatorTests.class); 
    private static WebDriver driver; 
    private ReloadableResourceBundleMessageSource messageSource; 
    private static ClassPathXmlApplicationContext springCtx; 

    /** 
    * Properties for Simulator tests 
    */ 

    @Before 
    public void setUp() { 
     // Bootstrap Spring Framework. 
     springCtx = new ClassPathXmlApplicationContext(
       new String[]{"test-config.xml"}); 
     //Make Sure that test_global.properties file is always in sync with the global.properties file from production. 
     messageSource = springCtx.getBean("messageSource", ReloadableResourceBundleMessageSource.class); 
     driver = new FirefoxDriver(); 
    } 

답변

0

로컬 레포에서 손상된 항아리처럼 압축 파일을 여는 동안 오류가 발생합니다. "C : \ Documents and Settings \ kondojis.m2 \ repository \ org \ seleniumhq \ selenium \ selenium-firefox-driver \"디렉토리를 삭제하고 다시 다운로드하십시오.

편집 : 셀레늄 의존성 및 오류 출력이 다른 버전이 당신의 눈치, 내가 폴더를 삭제하려고

<dependency> 
     <groupId>org.seleniumhq.selenium</groupId> 
     <artifactId>selenium-firefox-driver</artifactId> 
     <version>2.0rc2</version> 
     <scope>test</scope> 
    </dependency> 
+0

같은 수동 의존성을 선언하고 다시 받는다는 다운로드 할 수 있습니다. 같은 결과. 나는 2 이상의 모든 버전을 시험해 보았다. 그리고 나는 같은 상황에 빠진다. 그렇습니다. 위에서 추가 한 코드의 버전 레이블에 불일치가 있습니다. 그러나 코드 전체에서 올바르게 정렬되고 처리되었습니다. 파이어 폭스가 최신으로 업그레이드 될 때까지 오래된 버전 인 0.6.1039와 0.9.7376이 잘 작동하고 모든 hellp가 프로필을 위반했습니다. –