Liking cljdoc? Tell your friends :D

webdriver.core


alert-acceptclj

(alert-accept driver)

accepts alert

accepts alert
sourceraw docstring

alert-dismissclj

(alert-dismiss driver)

dismisses an alert

dismisses an alert
sourceraw docstring

alert-textclj

(alert-text driver)

returns the text contained in a js alert box

returns the text contained in a js alert box
sourceraw docstring

attrclj

(attr webelement attribute)
(attr driver lookup-type lookup-string attribute)

returns the value of an element's attribute

returns the value of an element's attribute
sourceraw docstring

byclj

(by lookup-type lookup-string)

Returns a By object. Used for element queries

Returns a By object. Used for element queries
sourceraw docstring

clearclj

(clear driver webelement)
(clear driver lookup-type lookup-string)

clears webelement

clears webelement
sourceraw docstring

clickclj

(click webelement)
(click driver webelement)
(click driver lookup-type & lookup-strings)

clicks an element

clicks an element
sourceraw docstring

(cookie driver cookie-name)
(cookie driver cookie-name cookie-value)

Creates or retrieves a cookie named cookie-name. Sets cookie's value to cookie-value if provided

Creates or retrieves a cookie named cookie-name.
Sets cookie's value to cookie-value if provided
sourceraw docstring

create-driverclj

(create-driver driver-type)
(create-driver driver-type args)

creates a chrome or firefox driver based on passing in :chrome or :firefox. args would be a verctor for command line arguments like ["--headless"]

creates a chrome or firefox driver based on passing in :chrome or :firefox.
args would be a verctor for command line arguments like ["--headless"]
sourceraw docstring

cssclj

(css webelement attribute)
(css driver lookup-type lookup-string attribute)

returns the value of a webelement's css value attribute

returns the value of a webelement's css value attribute
sourceraw docstring

driver-quitclj

(driver-quit driver)

calls quit on driver

calls quit on driver
sourceraw docstring

execute-scriptclj

(execute-script webdriver js & js-args)

Executes js in webdriver

Executes js in webdriver
sourceraw docstring

focused-elementclj

(focused-element driver)
source

get-elementclj

(get-element driver lookup-type lookup-string)

returns the first element matching lookup-type and lookup-string

returns the first element matching lookup-type and lookup-string
sourceraw docstring

get-element-valueclj

(get-element-value webelement attribute)
(get-element-value driver lookup-type lookup-string attribute)

gets the value of an element. :text for text and :value for value

gets the value of an element.
:text for text and :value for value
sourceraw docstring

get-elementsclj

(get-elements driver lookup-type lookup-string)

finds elements that match lookup-type and lookup-string and returns a vector of those WebElements

finds elements that match lookup-type and lookup-string and returns a vector of those WebElements
sourceraw docstring

get-visible-elementclj

(get-visible-element driver lookup-type lookup-string)

returns the first visible elmeent matching lookip-type and lookup-string

returns the first visible elmeent matching lookip-type and lookup-string
sourceraw docstring

iframeclj

(iframe driver n)
(iframe driver lookup-type lookup-string)

switches to iframe by index or webelement (via calling (get-element lookup-type lookup-string))

switches to iframe by index or webelement (via calling (get-element lookup-type lookup-string))
sourceraw docstring

iframe-defaultclj

(iframe-default driver)

switches to default content (main body of the html that contains all the iframes)

switches to default content (main body of the html that contains all the iframes)
sourceraw docstring

iframe-parentclj

(iframe-parent driver)

switches to parent iframe

switches to parent iframe
sourceraw docstring

implicit-waitclj

(implicit-wait driver timeout)

sets driver's implicit wait timeout (in seconds)

sets driver's implicit wait timeout (in seconds)
sourceraw docstring

input-textclj

(input-text driver webelement s clear-element)

sets the value of a text input. If clear-element, element will be cleared before setting the text input

sets the value of a text input. If clear-element, element will be cleared before
setting the text input
sourceraw docstring

is-visibleclj

(is-visible element)
(is-visible driver lookup-type lookup-string)

Returns true if element is visible

Returns true if element is visible
sourceraw docstring

qclj

(q driver s)

Finds and returns webelement with name, id, tagName, className, linkText, text, or xpath. Note: not great to use if using implicit waits.

Finds and returns webelement with name, id, tagName, className, linkText, text, or xpath.
Note: not great to use if using implicit waits.
sourceraw docstring

screen-shotclj

(screen-shot driver output)
source

scroll-into-viewclj

(scroll-into-view driver webelement)
(scroll-into-view driver lookup-type lookup-string)

scrolls webelemnt into view

scrolls webelemnt into view
sourceraw docstring

send-keysclj

(send-keys element s)

sends element the keys found in str s

sends element the keys found in str s
sourceraw docstring

set-elementclj

(set-element driver e s)
(set-element driver lookup-type lookup-string s)

sets element e to value s. For select or input elements

sets element e to value s. For select or input elements
sourceraw docstring

set-elementsclj

(set-elements driver e v)
(set-elements driver lookup-type lookup-strings values)

sets coll of elements e to coll of values v

sets coll of elements e to coll of values v
sourceraw docstring

set-file-inputclj

(set-file-input element s)

Sets file input's path

Sets file input's path
sourceraw docstring

switch-to-alertclj

(switch-to-alert driver)
source

toclj

(to driver url)

Navigates driver to the given url

Navigates driver to the given url
sourceraw docstring

try-clickclj

(try-click driver lookup-type lookup-string)
(try-click driver lookup-type lookup-string timeout)

repeatedly trys to click webelement until no exception occurs or the timeout (seconds) expires

repeatedly trys to click webelement until no exception occurs or
the timeout (seconds) expires
sourceraw docstring

unfocusclj

(unfocus driver)

unfocuses all elements

unfocuses all elements
sourceraw docstring

wait-clickclj

(wait-click driver lookup-type lookup-string)
(wait-click driver lookup-type lookup-string timeout)

waits with timeout (seconds) for element then clicks

waits with timeout (seconds) for element then clicks
sourceraw docstring

wait-for-elementclj

(wait-for-element driver lookup-type lookup-string)
(wait-for-element driver lookup-type lookup-string max-wait)

Explicitly waits for element to be clickable with a timeout of max-wait (seconds)

Explicitly waits for element to be clickable with a timeout of max-wait (seconds)
sourceraw docstring

wait-qclj

(wait-q driver lookup-type lookup-string)
(wait-q driver lookup-type lookup-string timeout)
(wait-q driver lookup-type lookup-string timeout require-visible)

returns a list of elements. Does not return elements until the query contains visible elements require-visible determines if the final seq returned are only visible elements matching the query

returns a list of elements.
Does not return elements until the query contains visible elements
require-visible determines if the final seq returned are only visible
elements matching the query
sourceraw docstring

with-all-driversclj/smacro

(with-all-drivers driver-args & body)

Same as with-driver but evaluates the forms in body agains all supported driver types. See examples in the unit tests

Same as with-driver but evaluates the forms in body agains all supported driver types.
See examples in the unit tests
sourceraw docstring

with-driverclj/smacro

(with-driver driver-type driver-args & body)

creates a driver, executes the forms in body, and closes the driver. driver is closed in the case of an exception

creates a driver, executes the forms in body, and closes the driver.
driver is closed in the case of an exception
sourceraw docstring

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

× close