I writing a test that includes locking screen, waiting x seconds and unlocking screen for my android app.
For now I am using Thread.sleep(x * 1000).
Is there a way to replace the Thread.sleep to something else? (I am not looking to find element on screen or something similar, only wait a few seconds).
I tried using :
driver.manage().timeouts().implicitlyWait(x, TimeUnit.SECONDS);
But it didn’t work.