Skip to content

Instantly share code, notes, and snippets.

@cacheflow
Last active March 28, 2016 18:50
Show Gist options
  • Save cacheflow/a46529a0bcf69acd9e0f to your computer and use it in GitHub Desktop.
Save cacheflow/a46529a0bcf69acd9e0f to your computer and use it in GitHub Desktop.
require "rufus-scheduler"
require "watir-webdriver"
browser = Watir::Browser.new(:chrome)
edit_page = ""
browser.goto("#{edit_page}")
while true do
sleep(300)
browser.button(class: "button").click
puts "just updated your profile"
sleep(10)
browser.back
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment