Permalink
Browse files

XPathable implemented by DomNode, the class defining getByXpath and f…

…irstByXpath
  • Loading branch information...
mdiin committed Feb 16, 2012
1 parent b051cec commit b84944def51060e8137704d9d3e4a4e99294a047
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/clj_htmlunit/core.clj
@@ -1,8 +1,8 @@
(ns clj-htmlunit.core
(:import (com.gargoylesoftware.htmlunit
- SgmlPage WebClient BrowserVersion)
+ WebClient BrowserVersion)
(com.gargoylesoftware.htmlunit.html
- HtmlElement)
+ DomNode HtmlElement)
(com.gargoylesoftware.htmlunit.util
FalsifyingWebConnection)))
@@ -48,7 +48,7 @@
"ID"))
(extend-protocol XPathable
- SgmlPage
+ DomNode
(descendants-by-xpath [node xpath]
(.getByXPath node xpath))

0 comments on commit b84944d

Please sign in to comment.