Beispiel #1
0
        public static void AssertTargetContains(this DroppablePage page, string text)
        {
            var texts = page.TargetElementContainerTab5.Text;

            StringAssert.Contains(text, page.TargetElementContainerTab5.Text);
        }
Beispiel #2
0
 public static void AssertTargetAttribute2(this DroppablePage page, string text, IWebElement element)
 {
     Assert.AreEqual(text, element.GetAttribute("class"));
 }
Beispiel #3
0
 public static void AssertElementPosition(this DroppablePage page, IWebElement element)
 {
     page.Wait.Until(w => page.Position == element.Location);
     Assert.AreEqual(page.Position, element.Location);
 }
Beispiel #4
0
 public static void AssertTargetAttribute(this DroppablePage page, string text) // Used for the exercises from the lecture
 {
     Assert.AreEqual(text, page.TargetElement.GetAttribute("class"));
 }