Last active
October 20, 2015 06:09
-
-
Save 0x7466/60d07bba3551c01ef183 to your computer and use it in GitHub Desktop.
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
# Check or uncheck checkboxes | |
check 'box-name' | |
uncheck 'box-name' | |
# Get cookies | |
Capybara.current_session.driver.request.cookies.[]('cookie-name') | |
# Click links and buttons | |
click_button 'button' # Only for buttons | |
click_link 'link' # Only for links | |
click 'button-or-link' # For both |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment