예제 #1
0
        public void TestZeroElements()
        {
            SetUpFindElementsReturnsEmpty();

            Actor.Invoking(x => x.AsksFor(IdAttribute.Of(Locator))).Should().Throw <WaitingException <bool> >();
        }
예제 #2
0
        public void TestAttribute()
        {
            WebDriver.Setup(x => x.FindElement(It.IsAny <By>()).GetAttribute(It.IsAny <string>())).Returns("a_button");

            Actor.AsksFor(IdAttribute.Of(Locator)).Should().Be("a_button");
        }