Exemple #1
0
    def step_impl(self, KEYWORDS):
        Validar = Selenium.Esperar_Xpath(self, Inicio.txt_busqueda_xpath)
        if Validar == False:
            Selenium.CapturarPantalla(self, u"No se inicializo google.com")
            pytest.skip("No se inicializo google.com")
            self.driver.quit()

        Selenium.Xpath_Elements(self, Inicio.txt_busqueda_xpath).click()
        Selenium.Xpath_Elements(self,
                                Inicio.txt_busqueda_xpath).send_keys(KEYWORDS)
        Selenium.Xpath_Elements(self, Inicio.txt_busqueda_xpath).send_keys(
            Keys.ENTER)
        Selenium.Esperar_Xpath(self, Inicio.txt_resultStats_xpath)
Exemple #2
0
 def step_impl(self, keyword):
     Selenium.Xpath_Elements(self, Inicio.txt_busqueda_xpath).click()
     Selenium.Xpath_Elements(self,
                             Inicio.txt_busqueda_xpath).send_keys(keyword)
     Selenium.Xpath_Elements(self, Inicio.txt_busqueda_xpath).send_keys(
         Keys.ENTER)
     Selenium.Esperar_Xpath(self, Inicio.txt_resultStats_xpath)
Exemple #3
0
 def step_impl(self, keyword):
     Selenium.Esperar_Xpath(self, Inicio.txt_resultOne_xpath)
     Verificar = Selenium.VerificarTexto_xpath(self,
                                               Inicio.txt_resultOne_xpath,
                                               keyword)
     unittest.TestCase.assertTrue(self, Verificar)