Beispiel #1
0
        public void ByLabel_Simple_Label_Text()
        {
            SetUp();

            var expectedElement = Driver.FindElement(By.Id("next_input"));
            var resultElement   = Driver.FindElement(ByExtension.Label("label for next input"));

            Assert.AreEqual(expectedElement, resultElement);
        }
Beispiel #2
0
        public void ByLabel_Embedded_Label_Text()
        {
            SetUp();

            var expectedElement = Driver.FindElement(By.Id("embedded_input"));
            var resultElement   = Driver.FindElement(ByExtension.Label("label for embedded input"));

            Assert.AreEqual(expectedElement, resultElement);
        }
Beispiel #3
0
        public void ByLabel_Simple_Label_By_Crossbrowser(string driver)
        {
            SetUp(driver);

            var expectedElement = Driver.FindElement(By.Id("next_input"));
            var resultElement   = Driver.FindElement(ByExtension.Label(By.Id("for_next_input")));

            Assert.AreEqual(expectedElement, resultElement);
        }