Created
October 3, 2012 05:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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