public static void WaitForItemExists(this Ranorex.Core.Repository.RepoItemInfo info, int waitDuration) { try { info.WaitForExists(new Duration(waitDuration)); } catch (Exception ex) { throw new Exception("Wait For Item Exists Failed : " + ex.Message); } }
public static bool WaitForItemExists(this Ranorex.Core.Repository.RepoItemInfo info, int waitDuration) { try { info.WaitForExists(new Duration(waitDuration)); return(true); } catch { return(false); } }