jeudi 21 mai 2020

Quitting web drivers after certain amount of idle time

I'm trying to run a batch file in command prompt that will close a web driver after a certain amount of idle time (effectively, indicating a test has failed).

At the moment I am just testing it on my browser, so launching the script and then not doing anything on that browser for a certain period of time. I want that browser tab to quit if it has been idle for 5 minutes.

Can anyone help with any commands they know would be effective, or any similar scripts you may have?

I am on Windows 10.

Aucun commentaire:

Enregistrer un commentaire