Exemple #1
0
        public void WebHome_Validar_Funcionalidad_Boton_Favoritos_Mundos()
        {
            ElementoWebHomeBT paginaBT = new ElementoWebHomeBT();

            IJavaScriptExecutor js = PropiedadColeccionDriver.driver as IJavaScriptExecutor;

            string correo = "*****@*****.**";
            string pass   = "******";

            System.Threading.Thread.Sleep(3000);

            paginaBT.IngresarFavoritos(correo, pass);

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

            paginaBT.FavoritosViajes();

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

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

            paginaBT.FavoritosTienda();

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

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

            paginaBT.FavoritosDescuentos();

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

            PropiedadColeccionDriver.driver.Quit();
        }