Public Vars

Back

select (clj)

(source)

function

(select driver q text)
Convenience function to have `driver` select first option that includes `text` for select element found by query `q`. To appease a quirk of the Safari WebDriver, we click on the select element first, then the option. Other WebDriver implementations do not seem to need, but are not negatively impacted by, the click on the select element. See [[query]] for details on `q`. See [User Guide](/doc/01-user-guide.adoc#select-dropdown) for other ways to select options from dropdowns.

Examples