Liking cljdoc? Tell your friends :D

clj-webdriver.window

Browser window and 'window handle' support

Browser window and 'window handle' support
raw docstring

init-windowclj

(init-window driver handle title url)

Given a Driver instance, the 'window handle' UUID of a given window, as well as its title and URL, instantiate a Window record.

Given a `Driver` instance, the 'window handle' UUID of a given window, as well as its title and URL, instantiate a `Window` record.
sourceraw docstring

IWindowcljprotocol

Functions to manage browser size and position.

Functions to manage browser size and position.

maximizeclj

(maximize this)

Maximizes the current window to fit screen if it is not already maximized. Returns driver.

Maximizes the current window to fit screen if it is not already maximized. Returns driver.

positionclj

(position this)

Returns map of X Y coordinates ex. {:x 1 :y 3} relative to the upper left corner of screen.

Returns map of X Y coordinates ex. {:x 1 :y 3} relative to the upper left corner of screen.

repositionclj

(reposition this coordinates-map)

Excepts map of X Y coordinates ex. {:x 1 :y 3} repositioning current window relative to screen. Returns driver.

Excepts map of X Y coordinates ex. {:x 1 :y 3} repositioning current window relative to screen. Returns driver.

resizeclj

(resize this dimensions-map)

Resize the driver window with a map of width and height ex. {:width 480 :height 800}. Returns driver.

Resize the driver window with a map of width and height ex. {:width 480 :height 800}. Returns driver.

sizeclj

(size this)

Get size of current window. Returns a map of width and height ex. {:width 480 :height 800}

Get size of current window. Returns a map of width and height ex. {:width 480 :height 800}

window-objclj

(window-obj this)

Return the underlying Java Window object used for manipulating the browser window.

Return the underlying Java Window object used for manipulating the browser window.
sourceraw docstring

window?clj

(window? this)

Return true if (class this) is our Window class.

Return true if `(class this)` is our `Window` class.
sourceraw docstring

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

× close