public void TestGetClickElement() { var element = new Mock <IWebElement>(MockBehavior.Strict); this.SetupClick(element); var nativePage = new NativePage(); var page = new SeleniumPage(nativePage, null); var result = page.ClickElement(element.Object); Assert.AreEqual(true, result); element.VerifyAll(); }
public void TestGetClickElement() { var element = new Mock<IWebElement>(MockBehavior.Strict); this.SetupClick(element); var nativePage = new NativePage(); var page = new SeleniumPage(nativePage); var result = page.ClickElement(element.Object); Assert.AreEqual(true, result); element.VerifyAll(); }
public void TestGetClickElementWhenControlIsSelected() { var element = new Mock<IWebElement>(MockBehavior.Strict); element.SetupGet(e => e.Selected).Returns(true); var nativePage = new NativePage(); var page = new SeleniumPage(nativePage); var result = page.ClickElement(element.Object); Assert.AreEqual(true, result); element.VerifyAll(); }