Esempio n. 1
0
        public void TestElementDoesNotExist()
        {
            SetUpFindElementsReturnsEmpty();

            Actor.Invoking(x => x.AsksFor(TagName.Of(Locator))).Should().Throw <WaitingException <bool> >();
        }
Esempio n. 2
0
        public void TestTagExists()
        {
            WebDriver.SetupGet(x => x.FindElement(It.IsAny <By>()).TagName).Returns("body");

            Actor.AsksFor(TagName.Of(Locator)).Should().Be("body");
        }