Skip to content

Instantly share code, notes, and snippets.

@jontonsoup
Created January 12, 2013 23:09
Show Gist options
  • Save jontonsoup/4520948 to your computer and use it in GitHub Desktop.
Save jontonsoup/4520948 to your computer and use it in GitHub Desktop.
require 'watir-webdriver'
b = Watir::Browser.new
b.goto 'facebook.com'
b.text_field(:id => 'email').set ''
b.text_field(:id => 'pass').set ''
b.button(:value => 'Log In').click
while(true) do
b.text_field(:name => 'xhpc_message').click
b.text_field(:name => 'xhpc_message_text').set '@northwestern ski trip'
# b.button(:value => 'Post').click
sleep(10);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment