public void HandleIndexOutOfBounds() { Actor.Invoking(x => x.AsksFor(WindowHandle.At(5))) .Should().Throw <BrowserInteractionException>() .WithMessage("No browser window exists at index '5'"); }
public void HandleAtIndex() { Actor.AsksFor(WindowHandle.At(1)).Should().Be(WindowHandles[1]); }