Experimental. V2 API explorations.
Experimental. V2 API explorations.
(clear-fields driver fields)
Like fill-form
, but clears all the text contents of inputs by deleting its contents.
NOTE: currently this is very naive presses backspace and delete N times, where N is the len of the text.
Like [[fill-form]], but clears all the text contents of inputs by deleting its contents. NOTE: currently this is very naive presses backspace and delete N times, where N is the len of the text.
(defderiveddriver
name
[underlying-driver & _ :as record-fields]
{:keys [every-form]
:or {every-form (clojure.core/seq
(clojure.core/concat
(clojure.core/list (quote clojure.core/fn))
(clojure.core/list
(clojure.core/apply
clojure.core/vector
(clojure.core/seq
(clojure.core/concat
(clojure.core/list (quote limo.v2/ctx))
(clojure.core/list (quote limo.v2/form))))))
(clojure.core/list (quote limo.v2/form))))}
:as options}
&
overrides)
(select-by-value driver selector-or-element value)
(switch-to-main-page driver)
Switches the element query to the root document, away from a frame
Switches the element query to the root document, away from a frame
(selected? driver selector-or-element)
(select-options driver selector-or-element)
List all options for a select input
List all options for a select input
(current-url driver)
Returns the current url of the page
Returns the current url of the page
(set-checkbox driver selector-or-element checked?)
(input-value driver selector-or-element)
(attribute driver selector-or-element attrname)
(find-elements driver selector-or-elements)
Find elements by selector
Find elements by selector
(visible? driver selector-or-element)
(delete-cookies driver)
Deletes cookies on the current domain
Deletes cookies on the current domain
(inner-text driver selector-or-element)
(refresh driver)
Refreshes the current page
Refreshes the current page
(tagname driver selector-or-element)
(select-by-text driver selector-or-element text-value)
(execute-script driver js js-args)
Executes javascript on the page
Executes javascript on the page
(take-screenshot driver)
(send-keys driver selector-or-element charseq)
(current-window-size driver)
(close driver)
Closes the driver
Closes the driver
(switch-to-frame driver selector-or-frame-element)
Switches the element querying to a given frame instead of the root document
Switches the element querying to a given frame instead of the root document
(navigate-to driver url)
Loads given url
Loads given url
(active-window-id driver)
Returns the window id of the active window.
Returns the window id of the active window.
(click driver selector-or-element)
(set-current-window-size driver size)
(switch-to-window driver window-id)
Changes the driver's DOM queries toa given browser window
Changes the driver's DOM queries toa given browser window
(read-logs! driver log-type)
Retrieves logs of a given type from the browser being control by selenium.
NOTE: The browser may discard the log information after the request to retrive the logs occurs. This means multiple calls to readonly-logs! can return different results.
(count (read-logs!)) => 5 (count (read-logs!)) => 0
read-logs! is pretty low-level in comparison to most of the other limo apis. Considering using [[read-performance-logs-until-test-pass!]]
Retrieves logs of a given type from the browser being control by selenium. NOTE: The browser may discard the log information after the request to retrive the logs occurs. This means multiple calls to readonly-logs! can return different results. > (count (read-logs!)) => 5 > (count (read-logs!)) => 0 read-logs! is pretty low-level in comparison to most of the other limo apis. Considering using [[read-performance-logs-until-test-pass!]]
(find-first-element driver selector-or-element)
Find an element by selector
Find an element by selector
(selenium-driver driver)
Returns the underlying selenium webdriver. Useful when using the selenium API directly, at the cost of losing any benefits IDriver provides.
Returns the underlying selenium webdriver. Useful when using the selenium API directly, at the cost of losing any benefits IDriver provides.
(all-window-ids driver)
Lists all the window ids controlled by a given driver.
Lists all the window ids controlled by a given driver.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close