Beispiel #1
0
        public void WebHomeTienda_Validar_Funcionalidad_Ingreso_Tienda_Destacados()
        {
            ElementoWebHomeBT paginaBT = new ElementoWebHomeBT();

            ElementoWebMundoTienda paginaTienda = new ElementoWebMundoTienda();

            IJavaScriptExecutor js = PropiedadColeccionDriver.driver as IJavaScriptExecutor;

            System.Threading.Thread.Sleep(2000);

            paginaBT.IraTienda();

            System.Threading.Thread.Sleep(1000);

            /// Producto 1

            paginaTienda.IngresarProductoDestacadoTienda1();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 2
            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda2();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 3

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda3();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 4
            ///

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda4();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 5
            ///

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda5();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 6
            ///

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda6();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 7
            ///

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda7();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 8
            ///

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda8();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            /// Producto 9
            ///

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarProductoDestacadoTienda9();

            System.Threading.Thread.Sleep(2500);

            js.ExecuteScript("window.scrollBy(0,650);");

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Navigate().Back();

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Quit();
        }