Created
August 8, 2012 09:56
-
-
Save halit/3293917 to your computer and use it in GitHub Desktop.
Google Doodle Hack(Python and Selenium)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys as k | |
br = webdriver.Chrome() | |
br.get(r'http://google.com') | |
elem = br.find_element_by_id('hplogo') | |
def mashButton(loops): | |
for i in xrange(loops): | |
elem.send_keys(k.LEFT) | |
elem.send_keys(k.RIGHT) | |
mashButton(200) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment