Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.709 kB
(ns clj-webdriver.element)
(defrecord Element [webelement])
(defn init-element
"Initialize an Element record"
([] (Element. nil))
([webelement] (Element. webelement)))
(defn init-elements
"Given WebElement objects, batch initialize elements (for things like returning all options for select lists)"
(for [webel webelements]
(init-element webel)))
(defn element?
"Return true if parameter is an Element record"
(= (class element) Element))
(defn element-like?
"Return true if parameter is either an Element record or a map with a :webelement entry"
(or (element? element)
(and (map? element)
(contains? element :webelement))))
Jump to Line
Something went wrong with that request. Please try again.