Beispiel #1
0
        public void DimensionTest()
        {
            int width        = 600;
            int height       = 600;
            var oldDimension = WebDriverManager.GetWindowSize();

            WebDriverManager.OpenUrl(Urls.Base);
            Logger.Info("Wingows Size width: {0}, height: {1}", oldDimension[0], oldDimension[1]);
            Logger.Info("Change Wingows Size width: {0}, height: {1}", width, height);
            WebDriverManager.ChangeWindowSize(600, 600);
            var newDimension = WebDriverManager.GetWindowSize();

            Assert.AreNotEqual(oldDimension, newDimension, "WindowSize doesn't changed");
        }