I could not find an answer online on how to disable the Page Visibility API. When I make a window not active, my script can not work properly and some buttons can not be clicked, because the site understands that the window is not active.
Asked
Active
Viewed 96 times
0
-
Does this answer your question? [Headless Google Chrome: How to prevent sites to know whether their window is focused or not](https://stackoverflow.com/questions/58772369/headless-google-chrome-how-to-prevent-sites-to-know-whether-their-window-is-foc) – J. Choi Jun 22 '22 at 03:17
-
@J.Choi is this a python language? – Черно - Светник Jun 22 '22 at 03:49
-
It is JS and you can execute it using Selenium. And there is a Selenium-Python-ChromeDriver solution in the linked question. – J. Choi Jun 22 '22 at 04:10