From 91698dbbaf501977bfd059b5dad53b1b4989f7f2 Mon Sep 17 00:00:00 2001 From: Suryatej Reddy Date: Sat, 14 Oct 2017 16:42:14 +0400 Subject: [PATCH 1/3] added hack for 10 fast fingers --- 10fastfingershack/hack.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 10fastfingershack/hack.py diff --git a/10fastfingershack/hack.py b/10fastfingershack/hack.py new file mode 100644 index 0000000..c89a646 --- /dev/null +++ b/10fastfingershack/hack.py @@ -0,0 +1,16 @@ +from selenium import webdriver +driver = webdriver.Chrome("/home/suryatej/Documents/chromedriver") +driver.get("https://10fastfingers.com/typing-test/english") +driver.maximize_window() +timer_element = driver.find_element_by_xpath('//*[@id="timer"]') +timer = timer_element.get_attribute("innerHTML") +input_element = driver.find_element_by_xpath('//*[@id="inputfield"]') +for i in range(1,350): + try: + current_word_element = driver.find_element_by_xpath('//*[@id="row1"]/span[' + str(i) +']' ) + current_word = current_word_element.get_attribute("innerHTML") + input_element.send_keys(current_word + " ") + #driver.implicitly_wait(10) + except: + break + From 9acf78c0ac7a1b561ee7bb9be92ed5a1d12da135 Mon Sep 17 00:00:00 2001 From: Suryatej Reddy Date: Sat, 14 Oct 2017 16:43:13 +0400 Subject: [PATCH 2/3] added readme file --- 10fastfingershack/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 10fastfingershack/README.md diff --git a/10fastfingershack/README.md b/10fastfingershack/README.md new file mode 100644 index 0000000..3f209cc --- /dev/null +++ b/10fastfingershack/README.md @@ -0,0 +1,2 @@ +#Requires Selenium and Chrome Webdriver +Install selenium and specify location in the Python Script. \ No newline at end of file From 98fe949ea450918bc643cab16072acf7d702c9c5 Mon Sep 17 00:00:00 2001 From: Suryatej Reddy Vyalla Date: Mon, 16 Oct 2017 23:53:58 +0400 Subject: [PATCH 3/3] Update README.md --- 10fastfingershack/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/10fastfingershack/README.md b/10fastfingershack/README.md index 3f209cc..68668df 100644 --- a/10fastfingershack/README.md +++ b/10fastfingershack/README.md @@ -1,2 +1,7 @@ #Requires Selenium and Chrome Webdriver -Install selenium and specify location in the Python Script. \ No newline at end of file +Install selenium and specify location in the Python Script. + +This is the official website. +https://10fastfingers.com/typing-test/english + +The website serves a test for your typing speed. It can be easily automated because the words are loaded into the website during load and readily available in the source code.