public void FindElementByTagName_callSeleniumElementFactoryWithTagNameLocator()
        {
            _seleniumBrowser.FindElementByTagName("testElement");

            _autoMoqer.GetMock <ISeleniumElementFactory>()
            .Verify(
                v =>
                v.Create(It.IsAny <IWebDriver>(), It.Is <By>(b => b.ToString() == "By.TagName: testElement"),
                         It.IsAny <SeleniumBrowser>()));
        }