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