public void TestZeroElements() { SetUpFindElementsReturnsEmpty(); Actor.Invoking(x => x.AsksFor(DomProperty.Of(Locator, "target"))).Should().Throw <WaitingException <bool> >(); }
public void TestDomProperty() { WebDriver.Setup(x => x.FindElement(It.IsAny <By>()).GetDomProperty(It.IsAny <string>())).Returns("blank"); Actor.AsksFor(DomProperty.Of(Locator, "target")).Should().Be("blank"); }