Skip to content

Commit

Permalink
Further performance improvements
Browse files Browse the repository at this point in the history
Shop less often

Use Chrome instead of Firefox
  • Loading branch information
frp committed Mar 30, 2014
1 parent b1391a5 commit 9ee3eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dripstat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class DripStatGame

def initialize
@driver = Selenium::WebDriver.for :firefox
@driver = Selenium::WebDriver.for :chrome
end

def login username, password
Expand All @@ -20,7 +20,7 @@ def run
loop do
counter += 1
clicker
if counter == 10
if counter == 100
shopping
increase_capacity
counter = 0
Expand All @@ -39,7 +39,7 @@ def increase_capacity
def clicker
element = @driver.find_element(:id, 'btn-addMem')
@driver.action.click_and_hold(element).release.perform
puts "click"
#puts "click"
end

def shopping
Expand Down

0 comments on commit 9ee3eac

Please sign in to comment.