Public Vars

Back

get-element-box (clj)

(source)

function

(get-element-box driver q)
Have `driver` return map describing a bounding box for element found by query `q`. See [[query]] for details on `q`. The result is a map with the following keys: - `:x1`: top left `x` coordinate; - `:y1`: top left `y` coordinate; - `:x2`: bottom right `x` coordinate; - `:y2`: bottom right `y` coordinate; - `:width`: width as a difference b/w `:x2` and `:x1`; - `:height`: height as a difference b/w `:y2` and `:y1`.

Examples