Public Vars

Back

get-element-csss (clj)

(source)

function

(get-element-csss driver q & properties)
Have `driver` return CSS style properties matching `properties` of element found by query `q`. See [[query]] for details on `q`. Found property values are returned as strings. When element is found but property is absent, result is included in vector as `nil`. Note: colors, fonts and some other properties may be represented differently for different browsers. Example: ```Clojure (def driver (firefox)) (e/go driver "https://clojars.org") (e/get-element-csss driver {:tag :body} :background-color :typo :line-height :font-size) ;; => ["rgb(226, 228, 227)" nil "20px" "14px"] ```

Examples