Esempio n. 1
0
 public void ElementContained_TwoElement()
 {
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl("ElementContained.aspx");
         AssertUI.CheckIfContainsElement(browser.First("#two"), "span");
     });
 }
Esempio n. 2
0
        public void ElementContained_NoElement_ExpectedFailure()
        {
            RunInAllBrowsers(browser =>
            {
                browser.NavigateToUrl("ElementContained.aspx");

                var a = browser.First("#no");
                AssertUI.CheckIfContainsElement(a, "span");
            });
        }
Esempio n. 3
0
        public void ElementContained_OneElement()
        {
            RunInAllBrowsers(browser =>
            {
                browser.NavigateToUrl("ElementContained.aspx");
                AssertUI.CheckIfContainsElement(browser.First("#one"), "span");
            });

            try
            {
            }
            catch (Exception ex)
            {
                var message = ex.ToString();

                if (message.Contains("child") || !message.Contains("2"))
                {
                    throw;
                }
            }
        }