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

            StringAssert.Contains(text, page.TargetElementContainerTab5.Text);
        }
示例#2
0
 public static void AssertTargetAttribute2(this DroppablePage page, string text, IWebElement element)
 {
     Assert.AreEqual(text, element.GetAttribute("class"));
 }
示例#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);
 }
示例#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"));
 }