Public Vars

Back

upload-file (clj)

(source)

multimethod

(upload-file driver q path)
Have `driver` attach a file `path` to a file input field element found by query `q`. Arguments: - `q` see [[query]] for details; - `file` - when a string or java.io.File object, the file must exist locally. - when [[remote-file]] file is assumed to exist remotely and no local existence check is performed. Under the hood, we send the file's name as a sequence of keys to the input.

Examples