Assert.assertTrue("element")..isDisplayed());

Hi …
I use Assert.assertTrue(“element”)…isDisplayed()); in my IOS/Android code .If the perticular element could not displayed my complete method comes out of execution(method written in try catch block) and error catches in the Catch Block.And the next rest methods also fail to click.So my complete test case execution fails.So if any method fails to tap/click only that method has to stop and rest of the method execution should continue.Is it possible to do?Please help me
Platform:IOS and Android
Appium version: 1.5.2
Simulator/Emulator or Real Device:Real Divide iPhone5s,Simulator iPhone6,emulator 6.0
language:Java
OS:MAC

Thanks
Vani

not 100% sure what you mean, maybe you want to look into soft assertions (https://rameshbaskar.wordpress.com/2013/09/11/soft-assertions-using-testng/)

1 Like