Exemple #1
0
        public void ValidarLinkTarjetas()
        {
            ElementoWebFooter   paginaBT = new ElementoWebFooter();
            IJavaScriptExecutor js       = PropiedadColeccionDriver.driver as IJavaScriptExecutor;

            System.Threading.Thread.Sleep(4000);

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

            System.Threading.Thread.Sleep(4000);

            paginaBT.IngresoLinkSolicitaCuentaRUT();

            System.Threading.Thread.Sleep(4000);

            PropiedadColeccionDriver.driver.SwitchTo().Window(PropiedadColeccionDriver.driver.WindowHandles.Last());

            System.Threading.Thread.Sleep(2000);

            PropiedadColeccionDriver.driver.SwitchTo().Window(PropiedadColeccionDriver.driver.WindowHandles[1]).Close();

            System.Threading.Thread.Sleep(2000);

            PropiedadColeccionDriver.driver.SwitchTo().Window(PropiedadColeccionDriver.driver.WindowHandles.Last());

            System.Threading.Thread.Sleep(4000);

            paginaBT.IngresoLinkSolicitudTarjetaCredito();

            System.Threading.Thread.Sleep(4000);

            PropiedadColeccionDriver.driver.Quit();
        }
Exemple #2
0
        public void validarLinkTerminosyCondiciones()
        {
            ElementoWebFooter   paginaBT = new ElementoWebFooter();
            IJavaScriptExecutor js       = PropiedadColeccionDriver.driver as IJavaScriptExecutor;

            js.ExecuteScript("window.scrollBy(0,1300);", "");
            System.Threading.Thread.Sleep(4500);

            paginaBT.IngresoLinkTerminoyCondiciones();
        }
Exemple #3
0
        public void ValidarLinksFooter()
        {
            ElementoWebFooter paginaBT = new ElementoWebFooter();

            IJavaScriptExecutor js = PropiedadColeccionDriver.driver as IJavaScriptExecutor;


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

            System.Threading.Thread.Sleep(7000);

            ///
            /// Ingreso de link Todo Sobre Beneficios Tarjtas
            ///

            paginaBT.IngresoLinkTodoSobreBT();

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

            js.ExecuteScript("window.scrollBy(0,-1300);", "");

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

            ///
            /// Ingreso de link Centro de Ayuda
            ///
            paginaBT.IngresoLinkCentrodeAyuda();

            System.Threading.Thread.Sleep(4000);

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

            System.Threading.Thread.Sleep(3000);

            js.ExecuteScript("window.scrollBy(0,-1300);", "");

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

            ///
            /// Ingreso de link Politica y Privacidad
            ///

            paginaBT.IngresoLinkPoliticayPrivacidad();

            System.Threading.Thread.Sleep(4000);

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

            System.Threading.Thread.Sleep(3000);

            js.ExecuteScript("window.scrollBy(0,-1300);", "");

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);


            ///
            /// Ingreso de link Término y Condiciones
            ///

            paginaBT.IngresoLinkTerminoyCondiciones();

            System.Threading.Thread.Sleep(4000);

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

            System.Threading.Thread.Sleep(3000);

            js.ExecuteScript("window.scrollBy(0,-1300);", "");

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(3000);

            ///
            /// Ingreso de link Información sobre campañas y concursos
            ///

            paginaBT.IngresoLinkInformacionCampanasyConcursos();

            System.Threading.Thread.Sleep(4000);

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

            System.Threading.Thread.Sleep(3000);

            js.ExecuteScript("window.scrollBy(0,-1300);", "");

            System.Threading.Thread.Sleep(3000);

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

            System.Threading.Thread.Sleep(4000);
        }