Skip to content

Instantly share code, notes, and snippets.

@camiloribeiro
Created October 3, 2012 05:15
Show Gist options
  • Save camiloribeiro/3825151 to your computer and use it in GitHub Desktop.
Save camiloribeiro/3825151 to your computer and use it in GitHub Desktop.
Example of using of implicit wait time for watir-webdriver in a simple ajax form
require "watir-webdriver"
b = Watir::Browser.new
b.goto "http://www.republicavirtual.com.br/cep/exemplos.php"
b.text_field(:id => "campoCEP").value = "<SEU CEP AQUI>"
b.button(:value => "buscar cep").click
puts Watir::Wait.until {b.div(:id => "resultado").text.include? "sucesso"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment