At 9/4/14 05:46 AM, sharpnova wrote:
Anyone?
I think Selenium might be your solution. I haven't messed around with it too much, but by using the "send_keys()" method to an element on the web page you could probably set up a timer script to dictate how fast send_keys is called.
Here's a modified example from one of their own examples.
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
browser = webdriver.Firefox()
browser.get('http://www.yahoo.com')
assert 'Yahoo!' in browser.title
elem = browser.find_element_by_name('p') # Find the search box
string = "Characters you want to send"
for c in string:
elem.send_keys(c)
time.sleep(1)
elem.send_keys(Keys.RETURN) # Submit the form
browser.quit()