Public Vars

Back

add-pointer-move (clj)

(source)

function

(add-pointer-move input & [{:keys [x y origin duration]}])
Return `input` source with pointer move action added. Moves the pointer from `origin` to offset `x` `y` with optional `duration` in milliseconds. Possible `origin` values are: - `"viewport"` move to `x` `y` offset in viewport. This is the default. - `"pointer"` `x` `y` are interpreted as offsets from the current pointer location. - a map that represents a web element for example via [[el->ref]]: ```Clojure (el->ref (query driver q)) ``` where `q` is [[query]] to find the element. Optionally specify `:duration` in milliseconds, defaults to 250.

Examples