Skip to content

Instantly share code, notes, and snippets.

@kurioscreative
kurioscreative / search.html.haml
Last active October 8, 2015 22:28
Geocoder: Over query limit Javascript Fix
= form_tag :search, method: :get, id:'search' do |f|
= text_field_tag :q, '', placeholder:'City, address, or zip code'
= hidden_field_tag :c, ''
= submit_tag "Go"
@huangzhichong
huangzhichong / selenium-webdriver-cheatsheet.md
Created August 7, 2012 12:38
Selenium Webdriver CheatSheet

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')