Currently a beginner, I am trying to click a video so it would start playing:
<div class="jw-media jw-reset"><video class="jw-video jw-reset" tabindex="-1" disableremoteplayback="" webkit-playsinline="" playsinline="" x-webkit-airplay="deny" preload="metadata" src="/get_file/1/d9ce3f3e42f691a717900763bb60674bd97739d341/64000/64857/64857_hq.mp4/?d=3166&br=626&ti=1645665256" __idm_id__="147457" style="object-fit: fill;"></video></div>
I tried to use:
element = browser.find_element(By.CSS_SELECTOR, ".jw-media")
element.click()
as a css selector from right clicking the div from inspect elements and copying the css selector. I've also tried
element = browser.find_element(By.CLASS_NAME, "jw-video jw-reset")
but that doesn't work either, what am I doing wrong?