private bool Confirmation() { if (apollo.AlertPresent() != null) { if (apollo.AlertPresent().Text.Contains("declined")) { ExecuteRefreshProgressThread(100, "DIE", "Success"); apollo.AlertPresent().Accept(); apollo.SwitchTo().DefaultContent(); return(false); } } if (apollo.ElementTextEquals(By.CssSelector("body > div.wrapper > div.page > div.container.col1-layout > div > div > div.page-title > h1"), "Thank You!", "LiveReal").IsNotNull()) { ExecuteRefreshProgressThread(100, "LIVE", "Success"); return(true); } ExecuteRefreshProgressThread(100, "ERROR APOLO #8, Reiniciando proceso...", "Success"); Restart(); return(false); }