semperos/clj-webdriver — Issue #47: Example of full "log in" scenario
Author: devn
Created: 2012-02-27 01:49:55+00:00
State: open

Hello, I seem to be having a bit of trouble using multiple actions in concert. Specifically I don't think I'm understanding how `wait-until` works.

How does one do something like the following?

(defn sign-in [user pass]
(to "https://github.com")
(wait-until (exists? "input#login_field"))
(quick-fill {"#login_field" "test"}
{"#password" "password"}))

What is the proper way to write this?

Your documentation is very thorough and I'm already really enjoying using this library to interactively step through test cases from the REPL, but I think it might help to have a more substantial example of visting, entering some information into a form, submitting, waiting until it completes, checking cookies afterwards, etc. Sort of a "full stack" view of how you see clj-webdriver being used for complex integration tests.

Thanks in advance,
Devin