示例#1
0
        public void Navigate()
        {
            _driver.Url = Url;
            var homePage = new HomePageSteps(_driver);
            var handle   = _driver.CurrentWindowHandle;

            homePage.NavigateToSenseproduction();
            var handleList = _driver.WindowHandles;

            _driver.SwitchTo().Window(handleList.Last());
            var title = _driver.Title;

            _driver.Close();
            _driver.SwitchTo().Window(handle);
            var title2 = _driver.Title;
        }