Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add an example to tweet

  • Loading branch information...
commit 97ebfc0f5bb9816299d283664516eaaeb65aac42 1 parent e2b50e6
@jugyo authored
Showing with 7 additions and 2 deletions.
  1. +7 −0 examples/twitter.capy
  2. +0 −2  examples/twitter.js
View
7 examples/twitter.capy
@@ -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
2  examples/twitter.js
@@ -1,2 +0,0 @@
-#!/usr/bin/env capy -s -j
-location.href = 'http://twitter.com'
Please sign in to comment.
Something went wrong with that request. Please try again.