Liking cljdoc? Tell your friends :D

com.semperos.selenium-webdriver-clj.core

Selenium-WebDriver support for Clojure

Selenium-WebDriver support for Clojure
raw docstring

*drivers*clj


*fast-speed*clj


*medium-speed*clj


*slow-speed*clj


(add-cookie driver cookie)

Add a new cookie to the browser session

Add a new cookie to the browser session
raw docstring

attributeclj

(attribute element name)

Retrieve the value of the attribute of the given element object

Retrieve the value of the attribute of the given element object
raw docstring

backclj

(back driver)

Go back to the previous page in 'browsing history'

Go back to the previous page in 'browsing history'
raw docstring

by-class-nameclj

(by-class-name expr)

Used when finding elements. Returns By/className of expr

Used when finding elements. Returns `By/className` of `expr`
raw docstring

by-css-selectorclj

(by-css-selector expr)

Used when finding elements. Returns By/cssSelector of expr

Used when finding elements. Returns `By/cssSelector` of `expr`
raw docstring

by-idclj

(by-id expr)

Used when finding elements. Returns By/id of expr

Used when finding elements. Returns `By/id` of `expr`
raw docstring

(by-link-text expr)

Used when finding elements. Returns By/linkText of expr

Used when finding elements. Returns `By/linkText` of `expr`
raw docstring

by-nameclj

(by-name expr)

Used when finding elements. Returns By/name of expr

Used when finding elements. Returns `By/name` of `expr`
raw docstring

(by-partial-link-text expr)

Used when finding elements. Returns By/partialLinkText of expr

Used when finding elements. Returns `By/partialLinkText` of `expr`
raw docstring

by-tag-nameclj

(by-tag-name expr)

Used when finding elements. Returns By/tagName of expr

Used when finding elements. Returns `By/tagName` of `expr`
raw docstring

by-xpathclj

(by-xpath expr)

Used when finding elements. Returns By/xpath of expr

Used when finding elements. Returns `By/xpath` of `expr`
raw docstring

clearclj

(clear element)

Clear the contents of the given element object

Clear the contents of the given element object
raw docstring

clickclj

(click element)

Click a particular HTML element

Click a particular HTML element
raw docstring

closeclj

(close driver)

Close this browser instance

Close this browser instance
raw docstring

(cookie-name cookie)

Retrieve the name of a particular cookie

Retrieve the name of a particular cookie
raw docstring

(cookie-named driver name)

Retrieve a cookie object given its name

Retrieve a cookie object given its name
raw docstring

(cookie-value cookie)

Retrieve the value of a particular cookie

Retrieve the value of a particular cookie
raw docstring

cookiesclj

(cookies driver)

Retrieve a set of cookies defined in the current session

Retrieve a set of cookies defined in the current session
raw docstring

current-urlclj

(current-url driver)

Retrieve the URL of the current page

Retrieve the URL of the current page
raw docstring

delete-all-cookiesclj

(delete-all-cookies driver)

Delete all cookies defined in the current session

Delete all cookies defined in the current session
raw docstring

(delete-cookie driver cookie)

Delete a cookie given a cookie instance

Delete a cookie given a cookie instance
raw docstring

(delete-cookie-named driver name)

Delete a cookie given its name

Delete a cookie given its name
raw docstring

enabled?clj

(enabled? element)

Returns true if the given element object is enabled

Returns true if the given element object is enabled
raw docstring

find-elementclj

(find-element obj by)

Retrieve the element object of an element described by by

Retrieve the element object of an element described by `by`
raw docstring

find-elementsclj

(find-elements obj by)

Retrieve a vector of element objects described by by

Retrieve a vector of element objects described by `by`
raw docstring

forwardclj

(forward driver)

Go forward to the next page in 'browsing history'

Go forward to the next page in 'browsing history'
raw docstring

get-urlclj

(get-url driver url)

Navigate the driver to a given URL

Navigate the driver to a given URL
raw docstring

(new-cookie name value)
(new-cookie name value path)
(new-cookie name value path date)

Create a new cookie instance

Create a new cookie instance
raw docstring

new-driverclj

(new-driver browser)

Create new driver instance given a browser type

Create new driver instance given a browser type
raw docstring

page-sourceclj

(page-source driver)

Retrieve the source code of the current page

Retrieve the source code of the current page
raw docstring

quitclj

(quit driver)

Destroy this browser instance

Destroy this browser instance
raw docstring

refreshclj

(refresh driver)

Refresh the current page

Refresh the current page
raw docstring

selectclj

(select element)

Select a given element object

Select a given element object
raw docstring

selected?clj

(selected? element)

Returns true if the given element object is selected

Returns true if the given element object is selected
raw docstring

send-keysclj

(send-keys element keys)

Type the string of keys into the element object

Type the string of keys into the element object
raw docstring

speedclj

(speed driver)
(speed driver speed)

Set the speed at which the browser should execute commands

Set the speed at which the browser should execute commands
raw docstring

startclj

(start browser url)

Shortcut to instantiate a driver, navigate to a URL, and return the driver for further use

Shortcut to instantiate a driver, navigate to a URL, and return the driver for further use
raw docstring

submitclj

(submit element)

Submit the form which contains the given element object

Submit the form which contains the given element object
raw docstring

switch-to-defaultclj

(switch-to-default driver)

Switch focus to the first first frame of the page, or the main document if the page contains iframes

Switch focus to the first first frame of the page, or the main document if the page contains iframes
raw docstring

switch-to-frameclj

(switch-to-frame driver frame)

Switch focus to a particular HTML frame

Switch focus to a particular HTML frame
raw docstring

switch-to-windowclj

(switch-to-window driver window)

Switch focus to a particular open window

Switch focus to a particular open window
raw docstring

swith-to-activeclj

(swith-to-active driver)

Switch to element that currently has focus, or to the body if this cannot be detected

Switch to element that currently has focus, or to the body if this cannot be detected
raw docstring

tag-nameclj

(tag-name element)

Retrieve the name of the HTML tag of the given element object

Retrieve the name of the HTML tag of the given element object
raw docstring

textclj

(text element)

Retrieve the content, or inner HTML, of a given element object

Retrieve the content, or inner HTML, of a given element object
raw docstring

titleclj

(title driver)

Retrieve the title of the current page as defined in the head tag

Retrieve the title of the current page as defined in the `head` tag
raw docstring

toclj

(to driver url)

Navigate to a particular URL

Navigate to a particular URL
raw docstring

toggleclj

(toggle element)

If the given element object is a checkbox, this will toggle its selected/unselected state

If the given element object is a checkbox, this will toggle its selected/unselected state
raw docstring

valueclj

(value element)

Retrieve the value attribute of the given element object

Retrieve the `value` attribute of the given element object
raw docstring

window-handleclj

(window-handle driver)

Get the only (or first) window handle

Get the only (or first) window handle
raw docstring

window-handlesclj

(window-handles driver)

Retrieve a set of window handles which can be used to switchTo particular open windows

Retrieve a set of window handles which can be used to switchTo particular open windows
raw docstring

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

× close