Пример #1
0
 def goto_login_page(self):
     """
     This method performs the path to reach Login activity
     :return: None
     """
     btn_menu = Base.find_element(self.drive,
                                  LoginPageLocators.HAMBURGUER_MENU)
     btn_menu.click()
     btn_sign = Base.find_element(self.drive, LoginPageLocators.LOGIN)
     btn_sign.click()
Пример #2
0
 def realizar_fluxo_inicial(self):
     btn_prox = Base.find_element(self.drive, ResultadosLocators.BTN_PROX)
     btn_prox.click()
     btn_entendi = Base.find_element(self.drive,
                                     ResultadosLocators.BTN_ENTENDI)
     btn_entendi.click()
     TouchAction(self.drive).press(x=487, y=1538).move_to(
         x=497, y=515).release().perform()
     btn_li_aceito = Base.find_element(self.drive,
                                       ResultadosLocators.BTN_LI_ACEITO)
     btn_li_aceito.click()
Пример #3
0
 def reach_(self):
     btn_dsl = Base.find_element(self.drive, GeneralLocators.button_dsl)
     btn_dsl.click()
     area_code_field = Base.find_element(self.drive, GeneralLocators.area_code_field)
     area_code_field.click()
     area_code_field.send_keys('030')
     time.sleep(30)
     # Base.handle_cookie(self.drive)
     cookie = Base.find_element(self.drive, GeneralLocators.button_cookie)
     cookie.click()
     time.sleep(10)
     mbit_value = Base.find_element(self.drive, GeneralLocators.mbit_100)
     mbit_value.click()
     button_vergleichen = Base.find_element(self.drive, GeneralLocators.button_vergleichen)
     button_vergleichen.click()
Пример #4
0
 def is_is_home_screen(self):
     resultados = Base.find_element(self.drive,
                                    ResultadosLocators.BTN_RESULTADOS)
     try:
         resultados
     except NoSuchElementException:
         return False
     return True