Appium Fails to launch app sometimes -


if execute appium scripts on time period half hr , during execution have called driver.closeapp(); & driver.launchapp(); driver.launchapp(); fails saying unable launch app: error: trying start logcat capture it's started! (warning: server did not provide stack trace information)

temporarily handling using try catch block

try{     -- openapp; }catch(exception e){     -- openapp; } 

is there better way make sure app , running ?


Comments