public override void ElementRun(IRootElement root, IWebBrowser browser, ITestElement elem)
        {
            var dis = elem.GetAttribute("disabled");

            if (dis == null)
            {
                elem.Click();
                WaitClient();
            }
            var val = elem.Text.ToDate();

            if (Today)
            {
                if (val != DateTime.Today)
                {
                    throw new TestException($"Date mismatch. Actual: '{val}', expected: '{DateTime.Today.ToString("dd.MM.yyyy")}'");
                }
            }
            else if (!String.IsNullOrEmpty(Date))
            {
                if (val != Date.ToDate())
                {
                    throw new TestException($"Date mismatch. Actual: '{val}', expected: '{Date}'");
                }
            }
        }
Beispiel #2
0
 public void Click(ITestElement elem)
 {
     EnsureDriver();
     Thread.Sleep(50);             // Vue
     elem.Click();
     WaitForComplete();
     Thread.Sleep(50);             // Vue
     EnsureNoAppException();
 }
        public override void ElementRun(IRootElement root, IWebBrowser browser, ITestElement elem)
        {
            var active = browser.ActiveElement();

            if (!active.IsSame(elem))
            {
                elem.Click();
                WaitClient();
            }
            elem.TypeText(Text);
        }
        public override void ElementRun(IRootElement root, IWebBrowser browser, ITestElement elem)
        {
            var dis = elem.GetAttribute("disabled");

            if (dis == null)
            {
                elem.Click();
                WaitClient();
            }
            var val = elem.Text.ToDecimal();

            if (val != Number)
            {
                throw new TestException($"Number mismatch. Actual: '{val}', expected: '{Number}'");
            }
        }
Beispiel #5
0
 public override void ElementRun(IRootElement root, IWebBrowser browser, ITestElement elem)
 {
     elem.Click();
     browser.WaitForComplete();
 }