コード例 #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));
 }
コード例 #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));
        }
コード例 #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")));
        }