Permalink
Browse files

add an example to tweet

  • Loading branch information...
1 parent e2b50e6 commit 97ebfc0f5bb9816299d283664516eaaeb65aac42 @jugyo committed Apr 25, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −0 examples/twitter.capy
  2. +0 −2 examples/twitter.js
View
@@ -0,0 +1,7 @@
+visit 'http://twitter.com/'
+fill_in 'session[username_or_email]', :with => USERNAME
+fill_in 'session[password]', :with => PASSWORD
+click_on 'Sign in'
+browser.keyboard.send_keys('n')
+browser.keyboard.send_keys('Tweet from capy!')
+click_on 'Tweet'
View
@@ -1,2 +0,0 @@
-#!/usr/bin/env capy -s -j
-location.href = 'http://twitter.com'

0 comments on commit 97ebfc0

Please sign in to comment.