How to avoid trigerring newCommandTimeout

I have a test with newCommandTimeout set to 3 minutes. My test involves other activities and from time to time it appears that 3 minutes in no enough.

My question: Is there is a way to PING my session, so newCommandTimeout doesn’t trigger?

Why you want 3 minutes? I use 3600 seconds on that capability.

And you really need 3 minutes wait without querying app?

My question: Is there is a way to PING my session, so newCommandTimeout doesn’t trigger?

Just perform any query and session timeout will be restarted. If you query p.e. findElements for something that does not exist it will retrieve an empty array and session timeout is restarted.

1 Like

fair enough. thank you!