public void TestZeroElements() { SetUpFindElementsReturnsEmpty(); Actor.Invoking(x => x.AsksFor(IdAttribute.Of(Locator))).Should().Throw <WaitingException <bool> >(); }
public void TestAttribute() { WebDriver.Setup(x => x.FindElement(It.IsAny <By>()).GetAttribute(It.IsAny <string>())).Returns("a_button"); Actor.AsksFor(IdAttribute.Of(Locator)).Should().Be("a_button"); }