Exemplo n.º 1
0
        public void GetWindowHandle_returnsWebDriverWindowHandle()
        {
            _autoMoqer.GetMock <IWebDriver>()
            .Setup(s => s.CurrentWindowHandle)
            .Returns("CurrentWindowHandle");

            var windowHandle = _seleniumBrowser.GetWindowHandle();

            Assert.AreEqual("CurrentWindowHandle", windowHandle);
        }