Beispiel #1
0
        public void LinkIsPresentByIdTest()
        {
            Ca.TestName = "LinkIsPresentByIdTest";
            Ca.GoToAnotherPage($"{MainUrl}/Pages/Software_OpenSource.aspx");
            bool value = Ca.LinkIsPresentById("MainContent_TreeView1t2", out var err);

            if (err?.Length > 0)
            {
                TestContext.WriteLine(err);
            }
            TestContext.WriteLine($"{value}");
            Assert.IsTrue(value);
        }
Beispiel #2
0
        public void GetTextFromElementByIdTest()
        {
            Ca.TestName = "GetTextFromElementByIdTest";
            Ca.GoToAnotherPage($"{MainUrl}/Pages/Sitemap.aspx");
            string value = Ca.GetTextFromElementById("MainContent_TreeView1t5", out var err);

            if (err?.Length > 0)
            {
                TestContext.WriteLine(err);
            }
            TestContext.WriteLine($"{value}");
            Assert.IsTrue(value.Length > 0);
        }
Beispiel #3
0
        public void NumberOfExpectedLinksTest()
        {
            Ca.TestName = "NumberOfExpectedLinksTest";
            Ca.GoToAnotherPage($"{MainUrl}/Pages/Software_OpenSource.aspx");
            bool value = Ca.NumberOfExpectedLinks("My Gun Collection", out var err);

            if (err?.Length > 0)
            {
                TestContext.WriteLine(err);
            }
            TestContext.WriteLine($"{value}");
            Assert.IsTrue(value);
        }