Public Vars


get-element-css (clj)



(get-element-css driver q property)
Have `driver` return the CSS style `property` of element found by query `q`. `property` is a string/keyword representing a CSS name. Examples: `:font` or `"background-color"` The property will be returned if it was defined for the element itself or inherited. Found property value is returned as string. When element is found but property is absent, returns `nil`. See [[query]] for details on `q`. Note: colors, fonts and some other properties may be represented differently for different browsers. Example: ```Clojure (def driver (firefox)) (e/go driver "") (get-element-css driver {:id :content} :background-color) ;; => "rgb(226, 228, 227)" ```