public void TestSize() { WebDriver.SetupGet(x => x.FindElement(It.IsAny <By>()).Size).Returns(new Size(100, 200)); var point = Actor.AsksFor(PixelSize.Of(Locator)); point.Width.Should().Be(100); point.Height.Should().Be(200); }
public void TestElementDoesNotExist() { SetUpFindElementsReturnsEmpty(); Actor.Invoking(x => x.AsksFor(PixelSize.Of(Locator))).Should().Throw <WaitingException <bool> >(); }