Check out Kite (free AI Coding Assistant) → Link

Buy Me a Coffee? Your support is much appreciated!

PayPal Me: https://www.paypal.me/jiejenn/5
Venmo: @Jie-Jenn

from bs4 import BeautifulSoup
from selenium.webdriver import Firefox, Chrome, Edge # class
from selenium.webdriver.common.keys import Keys # class
from selenium.webdriver import ActionChains

driver_path = 'geckodriver'

browser = Firefox(executable_path=driver_path)
url = 'https://jenniferdewalt.com/click_challenge.html'
browser.get(url)

action_chains = ActionChains(browser)

# locating button
browser.find_element_by_id('start').click()

while browser.find_element_by_xpath("//div[@class='mask mask_animate']"): 
    # action_chains.click().perform()
    action_chains.double_click().perform()