Every time I try to load the page zoomed out, the elements I want the program to click no longer are clicked and it gives an ElementClickInterceptedException saying it was trying to click on a different element. I've tested different zooms, same result. It's almost like it's just using the elements' X and Y coords for the normal zoom page even though I changed the zoom for it (i.e. if an element was close to the footer and I zoomed out, it would click the element right below it, where it was previously located). I would think that it shouldn't matter where on the page an element was located as long as I used find_element_by whatever but here I am. Anyone know a fix? Here is how I loaded a site and zoomed out:
driver.get(website)
driver.execute_script("document.body.style.zoom='80%'")
Here is the click that throws the error:
ch = driver.find_element_by_css_selector('input.changeplayer.form-control.ui-autocomplete-input')
ch.click()