예제 #1
0
    def test_013(self):
        with allure.step(u'Paso 2: Ingresar a Google'):
            date = Selenium.textDataEnvironmentReplace(self, "last month")
            Selenium.get_elements(self, "txt_busqueda").send_keys(date)
            Selenium.send_especific_keys(self, "txt_busqueda", "Enter")

            Selenium.esperar(3)
예제 #2
0
    def test_010(self):

        Selenium.get_elements(self, "Email").send_keys("mervlugo@gmailcom")
        Selenium.send_especific_keys(self, "Email", "Tab")

        Selenium.assert_text(self, "Email Error", "La dirección de email que proporcionaste no es válida.")

        time.sleep(5)
예제 #3
0
    def test_009(self):
        Selenium.page_has_loaded(self)
        Selenium.get_elements(self, "txt_busqueda").click()

        Selenium.get_elements(self, "txt_busqueda").send_keys("Selenium Udemy")
        #Selenium.send_key_text(self, "txt_busqueda", "Selenium Udemy")

        Selenium.esperar(self, 5)

        Selenium.send_especific_keys(self, "txt_busqueda", "Enter")
        Selenium.esperar(self, 5)
예제 #4
0
    def test_008(self):
        Selenium.get_json_file(self, "Spotify")

        Selenium.send_key_text(self, "txt_correo", "*****@*****.**")
        Selenium.send_especific_keys(self, "txt_correo", "Tab")

        Selenium.assert_text(
            self, "lbl_errorcorreo",
            "Este correo electrónico ya está conectado a una cuenta. Inicia sesión."
        )

        Selenium.esperar(5)
예제 #5
0
 def test_007(self):
     Selenium.get_json_file(self, "alphasig")
     
     Selenium.send_key_text(self, "txt_USUARIO", "alpha")
     
     Selenium.send_especific_keys(self,"txt_USUARIO", "Tab")
     
     Selenium.send_key_text(self, "txt_CLAVE", "homero")
                
     Selenium.send_especific_keys(self,"txt_CLAVE", "Enter")
     
     Selenium.esperar(5)
예제 #6
0
    def test_011(self):

        Selenium.get_elements(self,
                              "Email").send_keys("*****@*****.**")
        Selenium.send_especific_keys(self, "Email", "Tab")

        verificar = Selenium.validar_elemento(self, "Email Error")

        if verificar == True:
            #Selenium.send_key_text(self, "Email", "*****@*****.**")
            #pytest.skip("El email ya existe")
            unittest.TestCase.skipTest(self, "El email ya existe")

        time.sleep(5)
예제 #7
0
    def test_009(self):
        Selenium.get_json_file(self, "Spotify")

        Selenium.get_elements(
            self, "txt_correo").send_keys("*****@*****.**")
        Selenium.send_especific_keys(self, "txt_correo", "Tab")

        verificar = Selenium.check_element(self, "lbl_errorcorreo")

        if verificar == True:
            #Selenium.get_elements(self, "txt_correo").clear()
            Selenium.send_key_text(self, "txt_correo", "*****@*****.**")
            Selenium.send_especific_keys(self, "txt_correo", "Tab")
            #unittest.TestCase.skipTest(self, "El email ya existe")

        Selenium.esperar(5)
예제 #8
0
    def test_010(self):

        assert "No coinciden", Selenium.get_text(
            self, "Titulo") == Registro.tituloPagina
        # assert "No coinciden", Selenium.get_elements(self, "Titulo").text == Registro.tituloPagina

        # Selenium.get_text(self, "Titulo") == Registro.tituloPagina
        Selenium.get_elements(self, "Email").send_keys("dfsd")
        Selenium.send_especific_keys(self, "Email", "Tab")

        verificar = Selenium.check_element(self, "mensaje_error_email")

        if verificar == True:
            Selenium.send_key_text(self, "Email", Registro.emailUsuario)
            unittest.TestCase.skipTest(self, "El email ya existe")

        time.sleep(5)
예제 #9
0
 def test_008(self):
     Selenium.page_has_loaded(self)
     Selenium.get_elements(self, "txt_busqueda").click()
     Selenium.send_key_text(self, "txt_busqueda", "w3schools")
     Selenium.send_especific_keys(self, "txt_busqueda", "Enter")
     Selenium.esperar(5)