public void TestElementDoesNotExist() { SetUpFindElementsReturnsEmpty(); Actor.Invoking(x => x.AsksFor(TagName.Of(Locator))).Should().Throw <WaitingException <bool> >(); }
public void TestTagExists() { WebDriver.SetupGet(x => x.FindElement(It.IsAny <By>()).TagName).Returns("body"); Actor.AsksFor(TagName.Of(Locator)).Should().Be("body"); }