Beispiel #1
0
 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));
 }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        public MobileBlock(Session session) : base(session)
        {
            var wait = new WebDriverWait(Session.Driver, new TimeSpan(5000));

            Tag = wait.Until(driver => driver.GetElement(ByIOS.Type("UIAApplication")));
        }