Пример #1
0
        public void TestElementNotEnabled()
        {
            WebDriver.SetupGet(x => x.FindElement(It.IsAny <By>()).Enabled).Returns(false);

            Actor.AsksFor(EnabledState.Of(Locator)).Should().BeFalse();
        }
Пример #2
0
        public void TestElementDoesNotExist()
        {
            SetUpFindElementsReturnsEmpty();

            Actor.Invoking(x => x.AsksFor(EnabledState.Of(Locator))).Should().Throw <WaitingException <bool> >();
        }