public void TestElementNotEnabled() { WebDriver.SetupGet(x => x.FindElement(It.IsAny <By>()).Enabled).Returns(false); Actor.AsksFor(EnabledState.Of(Locator)).Should().BeFalse(); }
public void TestElementDoesNotExist() { SetUpFindElementsReturnsEmpty(); Actor.Invoking(x => x.AsksFor(EnabledState.Of(Locator))).Should().Throw <WaitingException <bool> >(); }