Liking cljdoc? Tell your friends :D

limo.v2

Experimental. V2 API explorations.

Experimental. V2 API explorations.
raw docstring

clear-fieldsclj

(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.
sourceraw docstring

create-drivercljmultimethod

source

defderiveddrivercljmacro

(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)
source

fill-formclj

(fill-form driver fields more-fields)
source

form-selector-or-elementclj

(form-selector-or-element form)
source

IDrivercljprotocol

select-by-valueclj

(select-by-value driver selector-or-element value)

switch-to-main-pageclj

(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?clj

(selected? driver selector-or-element)

select-optionsclj

(select-options driver selector-or-element)

List all options for a select input

List all options for a select input

current-urlclj

(current-url driver)

Returns the current url of the page

Returns the current url of the page

set-checkboxclj

(set-checkbox driver selector-or-element checked?)

input-valueclj

(input-value driver selector-or-element)

attributeclj

(attribute driver selector-or-element attrname)

find-elementsclj

(find-elements driver selector-or-elements)

Find elements by selector

Find elements by selector

visible?clj

(visible? driver selector-or-element)

delete-cookiesclj

(delete-cookies driver)

Deletes cookies on the current domain

Deletes cookies on the current domain

inner-textclj

(inner-text driver selector-or-element)

refreshclj

(refresh driver)

Refreshes the current page

Refreshes the current page

tagnameclj

(tagname driver selector-or-element)

select-by-textclj

(select-by-text driver selector-or-element text-value)

execute-scriptclj

(execute-script driver js js-args)

Executes javascript on the page

Executes javascript on the page

take-screenshotclj

(take-screenshot driver)

send-keysclj

(send-keys driver selector-or-element charseq)

current-window-sizeclj

(current-window-size driver)

closeclj

(close driver)

Closes the driver

Closes the driver

switch-to-frameclj

(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-toclj

(navigate-to driver url)

Loads given url

Loads given url

active-window-idclj

(active-window-id driver)

Returns the window id of the active window.

Returns the window id of the active window.

clickclj

(click driver selector-or-element)

set-current-window-sizeclj

(set-current-window-size driver size)

switch-to-windowclj

(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!clj

(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-elementclj

(find-first-element driver selector-or-element)

Find an element by selector

Find an element by selector

selenium-driverclj

(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-idsclj

(all-window-ids driver)

Lists all the window ids controlled by a given driver.

Lists all the window ids controlled by a given driver.
source

pollcljmacro

(poll driver form)
source

write-imageclj

(write-image bi destination)
(write-image bi destination file-format)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close