스칼라 2.8.1, SBT 0.7.4, WebDriver HTMLUnit 2.6. SBT 콘솔 REPL에서 ... 스칼라 REPL 탭 완성이 나에게 거짓말입니까?
scala> e.findElement[tab]
findElement findElementById findElementByLinkText findElementByPartialLinkText
findElementByTagName findElementByXPath findElements findElementsById
findElementsByLinkText findElementsByPartialLinkText findElementsByTagName findElementsByXPath
scala> e.findElementByXPath[tab]
def findElementByXPath(String): org.openqa.selenium.WebElement
scala> e.findElementByXPath("/td[0]")
<console>:12: error: value findElementByXPath is not a member of org.openqa.selenium.WebElement
e.findElementByXPath("/td[0]")
^
그래서 ([tab]
의 탭 완성을 설명하기 위해 저에 의해 추가)에 REPL은 findElementByXPath(String):WebElement
이 e
에 있는지 알려줍니다,하지만 난 호출 할 때 찾지 못했습니다. 뭐라 구요?
소스를 최소한보고 싶습니다. 여기에서 어디로 가야합니까 ... http://lampsvn.epfl.ch/trac/scala/browser/scala/trunk – Synesso
@ 죄송합니다. 귀하의 의견을 이해할 수 없습니다. 스칼라 소스를 말하는 겁니까? 거기에서'src'로 가면, Scala의 다양한 부분을 찾을 수 있습니다 : 컴파일러, 라이브러리 등 이제 REPL이 어디에 있는지 잘 모르겠습니다. 컴파일러 경로에는'nsc' 디렉토리가 있습니다. 그것의'interactive '와'interpreter' 서브 디렉토리는'nsc' 디렉토리 자체의 일부 파일뿐만 아니라 특히 관련이 있습니다. –
감사합니다. 막연하게해서 유감스럽게 생각합니다. "패치 환영"에 대한 응답이었습니다. 의미하지는 않겠지 만, 소스를 검토하여 헤드 또는 테일을 만들 수 있는지 확인하는 데 관심이 있습니다. 빨리 살펴보고, def type으로 추측됩니다. 멤버 http://lampsvn.epfl.ch/svn-repos/scala/scala/branches/scala-detach/src/compiler/scala/tools/nsc/interactive/ Global.scala - 나는 확신 할 수 없다. – Synesso