Liking cljdoc? Tell your friends :D

etaoin.driver

Some utilities to work with driver's data structure.

Note: the functions below take not an atom but pure map to be used with swap!. Our further goal is to reduce atom usage everywhere it is possible.

Links for development:

Firefox command line flags: /Applications/Firefox.app/Contents/MacOS/firefox-bin --help

Chrome binary path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Chrome CLI args: https://peter.sh/experiments/chromium-command-line-switches/

Chrome capabilities: https://sites.google.com/a/chromium.org/chromedriver/capabilities

Firefox capabilities: https://github.com/mozilla/geckodriver/#firefox-capabilities

Firefox profiles: https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data

Safari endpoints https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/WebDriverEndpointDoc/Commands/Commands.html

JSON Wire protocol (obsolete) https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol

Selenium Python source code for Firefox https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/firefox/options.py

Some utilities to work with driver's data structure.

Note: the functions below take not an atom but pure map
to be used with swap!. Our further goal is to reduce atom usage
everywhere it is possible.

Links for development:

Firefox command line flags:
/Applications/Firefox.app/Contents/MacOS/firefox-bin --help

Chrome binary path:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Chrome CLI args:
https://peter.sh/experiments/chromium-command-line-switches/

Chrome capabilities:
https://sites.google.com/a/chromium.org/chromedriver/capabilities

Firefox capabilities:
https://github.com/mozilla/geckodriver/#firefox-capabilities

Firefox profiles:
https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data

Safari endpoints
https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/WebDriverEndpointDoc/Commands/Commands.html

JSON Wire protocol (obsolete)
https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol

Selenium Python source code for Firefox
https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/firefox/options.py
raw docstring

append-argsclj

(append-args args extra)
source

dispatch-driverclj

(dispatch-driver driver & _)
source

get-argsclj

(get-args driver)
source

is-headless?cljmultimethod

(is-headless? driver)
source

options-namecljmultimethod

source

prepend-argsclj

(prepend-args args extra)
source

set-argsclj

(set-args driver args)
source

set-binarycljmultimethod

(set-binary driver binary)
source

set-browser-log-levelcljmultimethod

(set-browser-log-level driver binary)

Sets browser logging level.

Sets browser logging level.
sourceraw docstring

set-capabilitiesclj

(set-capabilities driver caps)
source

set-download-dircljmultimethod

(set-download-dir driver path)
source

set-headlesscljmultimethod

(set-headless driver)
source

set-load-strategyclj

(set-load-strategy driver strategy)
source

set-options-argsclj

(set-options-args driver args)

Adds command line arguments for a browser binary (not a driver).

Adds command line arguments for a browser binary (not a driver).
sourceraw docstring

set-pathclj

(set-path driver path)

Sets path to the driver's binary file.

Sets path to the driver's binary file.
sourceraw docstring

set-perf-loggingclj

(set-perf-logging driver
                  &
                  [{:keys [level network? page? categories interval]
                    :or {level :all
                         network? true
                         page? false
                         categories [:devtools.network]
                         interval 1000}}])

categories example: [:browser :devtools :devtools.timeline]

categories example:
[:browser :devtools :devtools.timeline]
sourceraw docstring

set-portcljmultimethod

(set-port driver port)

Updates driver's map with the given port added to the args.

Updates driver's map with the given port added to the args.
sourceraw docstring

set-prefscljmultimethod

(set-prefs driver prefs)
source

set-profilecljmultimethod

source

set-urlcljmultimethod

(set-url driver url)

Sets the default URL that the browser should open by default.

Sets the default URL that the browser should open by default.
sourceraw docstring

set-window-sizecljmultimethod

(set-window-size driver w h)

Adds browser's command line arguments for setting initial window size.

Adds browser's command line arguments for setting initial window size.
sourceraw docstring

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

× close