The only solution I’ve found is going into headless mode. But the issue is that now I have to figure out another problem, and I’m stuck unable to fully see the page at this time.

When the issue happened, the mouse just went over a link and pressed it automatically, even without any click() calls in my code. The only call I’m making to the page besides retrieving the elements of the page is this - ActionChains(driver).send_keys_to_element(shadow_content3, Keys.PAGE_UP).perform(). I send that request twice with a 0.5 second delay in between and then the loop restarts again.

I have absolutely no idea what could be causing this, as my code seems to very much not be the problem.

Thank you so much in advance!