Skip to content

Commit

Permalink
Imitate focus
Browse files Browse the repository at this point in the history
Do not stop when browser is minimized
  • Loading branch information
frp committed Mar 30, 2014
1 parent 9ee3eac commit a20c5c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dripstat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def login username, password
@driver.find_element(:name, 'username').submit
sleep(5)
@driver.get("https://dripstat.com/game")
@driver.execute_script("document.hasFocus = function() {return true;}")
end

def run
Expand Down

0 comments on commit a20c5c0

Please sign in to comment.