public FrontView Delete() { Session.CurrentBlock <FrontView>() .Drag(e => this).AndDrop(-50, 0) .WaitUntil(view => view.GetElements(ByIOS.PartialName("Confirm Deletion")).Any()) .GetElement(ByIOS.PartialName("Confirm Deletion")).Click(); return(new FrontView(Session)); }
public SettingsView LogIn() { GetElement(ByIOS.Name("Login")).Click(); bool isValid = true; try { Session.Driver.SwitchTo().Alert(); isValid = false; } catch {} if (!isValid) { throw new VerificationException("Invalid Login Credentials"); } this.WaitUntil(view => view.Tabs.SettingsTab.Tag.Displayed); return(new SettingsView(Session)); }
public MobileBlock(Session session) : base(session) { var wait = new WebDriverWait(Session.Driver, new TimeSpan(5000)); Tag = wait.Until(driver => driver.GetElement(ByIOS.Type("UIAApplication"))); }