input-text fills only the first match.
quick-fill, .
,:.
(quick-fill {".class" "s"})
/
: " 2 3. " - ", ".object ". , , , .
, find-elements. :
(find-elements {:class ".class"})
".class", .
, input-text . , , map-indexed, (doall - , , doall ):
(defn fill!
"Fills all elements with class class with increasing numbers."
[class]
(let [elements (find-elements {:class class})]
(doall
(map-indexed (fn [index element]
(input-text element (str index)))
elements))))
(fill! ".class").
, .