Beispiel #1
0
        public void WebHomeTienda_Validar_Funcionalidad_Link_Sliders_Carrusel()
        {
            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);

            paginaTienda.IngresarPrimeraImagenCarruselTienda();

            System.Threading.Thread.Sleep(2500);

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

            System.Threading.Thread.Sleep(3000);

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

            /// Segunda Imagen

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarSegundoBtnCircular();

            paginaTienda.IngresarSegundaImagenCarruselTienda();

            System.Threading.Thread.Sleep(2500);

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

            System.Threading.Thread.Sleep(3000);

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

            /// Tercera Imagen

            System.Threading.Thread.Sleep(400);

            paginaTienda.IngresarTerceroBtnCircular();

            System.Threading.Thread.Sleep(1000);

            paginaTienda.IngresarTerceraImagenCarruselTienda();

            System.Threading.Thread.Sleep(2500);

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

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Quit();
        }
Beispiel #2
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();
        }
Beispiel #3
0
        public void WebHomeTienda_Validar_Funcionalidad_Categorias_Tienda()
        {
            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(2000);

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

            System.Threading.Thread.Sleep(5000);

            ///Categoria Tecnología
            ///
            paginaTienda.IngresarCategoriaTecnologia();

            System.Threading.Thread.Sleep(2000);

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

            System.Threading.Thread.Sleep(4000);

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

            ///Categoria Hogar
            ///

            paginaTienda.IngresarCategoriaHogar();

            System.Threading.Thread.Sleep(2000);

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

            System.Threading.Thread.Sleep(4000);

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

            ///Categoria Belleza
            ///

            paginaTienda.IngresarCategoriaBelleza();

            System.Threading.Thread.Sleep(2000);

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

            System.Threading.Thread.Sleep(4000);

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

            ///Categoria Deportes
            ///

            paginaTienda.IngresarCategoriaDeportes();

            System.Threading.Thread.Sleep(2000);

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

            System.Threading.Thread.Sleep(4000);

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

            /// Categoría Infantil
            ///

            paginaTienda.IngresarCategoriaInfantil();

            System.Threading.Thread.Sleep(2000);

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

            System.Threading.Thread.Sleep(4000);

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

            PropiedadColeccionDriver.driver.Quit();
        }