How to know that splash screen has disappeared and first clickable element has appeared?

Hi,

My task is to wait for splash screen and then click the which ever first button appears after it. currently i explicitly wait for 60 seconds. Then use driver.findElements(By.xpath("//android.widget.Button[@clickable=‘true’]"))[0].click();. Basically i get all the clickables on the screen and click on 0th element. Is there a way to use wait.until to know that splash screen has disappeared and first clickable element (whatever it is) has appeared? It can be any element. Its not specific so i cant use ExpectedConditions.elementToBeClickable(By)) or can I if if takes wild card in By condition?. Thanks

1 Like