Selenium-WebDriver support for Clojure
Selenium-WebDriver support for Clojure
(add-cookie driver cookie)
Add a new cookie to the browser session
Add a new cookie to the browser session
(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
(back driver)
Go back to the previous page in 'browsing history'
Go back to the previous page in 'browsing history'
(by-class-name expr)
Used when finding elements. Returns By/className
of expr
Used when finding elements. Returns `By/className` of `expr`
(by-css-selector expr)
Used when finding elements. Returns By/cssSelector
of expr
Used when finding elements. Returns `By/cssSelector` of `expr`
(by-id expr)
Used when finding elements. Returns By/id
of expr
Used when finding elements. Returns `By/id` of `expr`
(by-link-text expr)
Used when finding elements. Returns By/linkText
of expr
Used when finding elements. Returns `By/linkText` of `expr`
(by-name expr)
Used when finding elements. Returns By/name
of expr
Used when finding elements. Returns `By/name` of `expr`
(by-partial-link-text expr)
Used when finding elements. Returns By/partialLinkText
of expr
Used when finding elements. Returns `By/partialLinkText` of `expr`
(by-tag-name expr)
Used when finding elements. Returns By/tagName
of expr
Used when finding elements. Returns `By/tagName` of `expr`
(by-xpath expr)
Used when finding elements. Returns By/xpath
of expr
Used when finding elements. Returns `By/xpath` of `expr`
(clear element)
Clear the contents of the given element object
Clear the contents of the given element object
(click element)
Click a particular HTML element
Click a particular HTML element
(cookie-name cookie)
Retrieve the name of a particular cookie
Retrieve the name of a particular cookie
(cookie-named driver name)
Retrieve a cookie object given its name
Retrieve a cookie object given its name
(cookie-value cookie)
Retrieve the value of a particular cookie
Retrieve the value of a particular cookie
(cookies driver)
Retrieve a set of cookies defined in the current session
Retrieve a set of cookies defined in the current session
(current-url driver)
Retrieve the URL of the current page
Retrieve the URL of the current page
(delete-all-cookies driver)
Delete all cookies defined in the current session
Delete all cookies defined in the current session
(delete-cookie driver cookie)
Delete a cookie given a cookie instance
Delete a cookie given a cookie instance
(delete-cookie-named driver name)
Delete a cookie given its name
Delete a cookie given its name
(enabled? element)
Returns true if the given element object is enabled
Returns true if the given element object is enabled
(find-element obj by)
Retrieve the element object of an element described by by
Retrieve the element object of an element described by `by`
(find-elements obj by)
Retrieve a vector of element objects described by by
Retrieve a vector of element objects described by `by`
(forward driver)
Go forward to the next page in 'browsing history'
Go forward to the next page in 'browsing history'
(get-url driver url)
Navigate the driver to a given URL
Navigate the driver to a given URL
(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
(new-driver browser)
Create new driver instance given a browser type
Create new driver instance given a browser type
(page-source driver)
Retrieve the source code of the current page
Retrieve the source code of the current page
(selected? element)
Returns true if the given element object is selected
Returns true if the given element object is selected
(send-keys element keys)
Type the string of keys into the element object
Type the string of keys into the element object
(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
(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
(submit element)
Submit the form which contains the given element object
Submit the form which contains the given element object
(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
(switch-to-frame driver frame)
Switch focus to a particular HTML frame
Switch focus to a particular HTML frame
(switch-to-window driver window)
Switch focus to a particular open window
Switch focus to a particular open window
(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
(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
(text element)
Retrieve the content, or inner HTML, of a given element object
Retrieve the content, or inner HTML, of a given element object
(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
(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
(value element)
Retrieve the value
attribute of the given element object
Retrieve the `value` attribute of the given element object
(window-handle driver)
Get the only (or first) window handle
Get the only (or first) window handle
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close