I\'m trying to tell my watir script to wait for an ajax-injected login box to open up. I am using watir-webdriver, and testing in Chrome. I cannot get wait_until
wait_until
Do this first:
require "watir-webdriver/wait"
Then try these:
Watir::Wait.until { ... }
browser.text_field(:id => 'username').when_present.set("name")
browser.text_field(:id => 'username').wait_until_present
Note that "present" here means "the element both exists and is visible".