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