Trying to beat a click speed tester(and failure)

There are a plethora of websites on which one can measure their click speed. One of them is

So I made an attempt to beat this with the help of selenium browser automation.

The idea was that the click are element would be located and clicked in an infinite loop till the timer runs out.

from selenium import webdriver
from import WebDriverWait
from import By
from import expected_conditions as EC
browser = webdriver.Firefox() #Using firefox webdriver
browser.get("") #open website
print(browser.find_element_by_id('start'))#Find the start button and click on it twice. It is clecked twice as #the start button takes some time to load(Maybe WebDriverWait can be #used)browser.find_element_by_id('start').click()
#Find the clickable areaclickarena = browser.find_elements_by_xpath("//*[contains(text(), 'Click this box as fast as you can!')]")#Click on the clickable area infinitelywhile True:

However, the while using the Firefox web driver, a click rate of 4.2 cps is achieved(about 6.3 can be achieved by hand) in 15s.

However using the chromium webdriver and finding element using XPATH(shout out to Weekly Shot) gives better results(109 cps).



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store