Getting error: “ javascript error: Cannot read property” when tracking HTML video current Time using the combination of JavaScript and Selenium
问题 I would like in interval to track video play progress in a HTML video. Based on the tutorial, the HTML video DOM timeupdate event can be achieved by something like below: from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC import time chrome_options = webdriver.ChromeOptions() browser = webdriver.Chrome(executable_path=r"\Browsers\chromedriver.exe",