저는 scala에 익숙하지 않지만 Selenium과 함께 ScalaTest를 사용하고자합니다. 예제를 직접 복사하여 http://www.scalatest.org/user_guide/using_selenium에서 붙여 넣었습니다. 암시 적 변환 발견 -scalatest 셀레늄 예제 컴파일 오류
이 줄 에서 여러 마커 :하지만
"The blog app home page" should "have the correct title" in { go to (host + "index.html") pageTitle should be ("Awesome Blog") }
오류 키워드 '에서'직전이 '{'라고하는 것을 아래의 문에 오류가있어 : "블로그 응용 프로그램 홈 페이지"에 올바른 제목이 있어야 함 => convertToInAndIgnoreMethods ("블로그 응용 프로그램 홈 페이지"에 "올바른 제목이 있어야 함") - 대안을 사용한 메소드 값 오버로드 : (testFun : BlogSpec.this .FixtureParam => Any) Unit (testFun :() => Any) 단위는 (단위)에 적용 할 수 없습니다.- 대체 값으로 오버로드 된 메소드 값 : (testFun : BlogSpec.this.FixtureParam => Any) Unit (testFun :() => Any) 단위를 (Unit) 에 적용 할 수 없음 - 암시 적 변환을 발견 함 : "블로그 앱 홈 페이지 "=> convertToStringShouldWrapper (는" 블로그 응용 프로그램 홈 페이지 ")
내가 받는다는 통해 모든 권리 버전을 따기있어 생각이 주위에 얻을 수
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.10.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.specs2</groupId>
<artifactId>specs2_2.10</artifactId>
<version>1.13</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.10</artifactId>
<version>2.0.M6-SNAP8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.37.0</version>
</dependency>
...
<plugin>
<!-- see http://davidb.github.com/scala-maven-plugin -->
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.3</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<args>
<arg>-make:transitive</arg>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>
시도를 많이하지만, 실패한. 어떤 도움이라도 대단히 감사 할 것입니다. 또한 https://bitbucket.org/olimination/hello-scalajava.git을 시도했지만 maven 오류로 인해 실행되지 않았습니다.
답장을 보내 주셔서 감사합니다. 매우 감사! – RayCh