Skip to content

Instantly share code, notes, and snippets.

@jarib
Created October 26, 2009 13:50
Show Gist options
  • Save jarib/218648 to your computer and use it in GitHub Desktop.
Save jarib/218648 to your computer and use it in GitHub Desktop.
class ...BlackListPage
text_field(:email) { @browser.text_field(:id, "emailField") }
button(:search) { @browser.button(:id, 'search') }
def fill(params = {})
self.email = params[:email]
search!
end
end
#### step ###
@site.....black_list_page.fill :email => "finn"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment