@dejavuakku Maybe you can try some other functions like etaoin.api/exists? or etaoin.api/visible? etc.
etaoin.api/exists?
etaoin.api/visible?
How to detect a driver is closed or still running?