Skip to content
Advertisement

monitor chrome tabs – python selenium

I’m writing a script where I need you to monitor the number of open tabs. The script reads a table and each information in the table opens a new tab in the browser. It turns out that in order not to have thousands of tabs open, I need the script to monitor the tabs to have only 3 open, when I close a tab I need to automatically open the next tab

JavaScript

Advertisement

Answer

To do this, just add a loop that monitors the guides, it can be as follows:

JavaScript

without your code:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement