Browser window and 'window handle' support
Browser window and 'window handle' support
(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.
Functions to manage browser size and position.
Functions to manage browser size and position.
(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.
(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.
(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.
(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.
(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-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.
(window? this)
Return true if (class this)
is our Window
class.
Return true if `(class this)` is our `Window` class.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close