def test_004(self): #cARGAR EL JSON CON LOS VALORES DE LOS ID DE LA APP Selenium.get_json_file(self, "frames") Selenium.switch_to_iframe(self, "Frame2") Selenium.select_by_text(self, "Frame2 Select", "Avatar") Selenium.switch_to_parentFrame(self) Selenium.switch_to_iframe(self, "Frame1") Selenium.send_key_text(self, "Frame1 input", "Hola Chicos de Udemy") Selenium.switch_to_iframe(self, "Frame3") Selenium.get_elements(self, "Frame3 input").click() time.sleep(5)
def test_003(self): #cargar el JSON con los valores de los ID de la APP Selenium.get_json_file(self, "iframe") Selenium.switch_to_iframe(self, "fra_frame2") Selenium.select_by_text(self, "dpd_animales", "Avatar") Selenium.switch_to_parentFrame(self) Selenium.switch_to_iframe(self, "fra_frame1") Selenium.send_key_text(self, "txt_topic", "Hola soy Luisa") Selenium.switch_to_iframe(self, "fra_frame3") Selenium.get_elements(self, "chk_options").click() time.sleep(10)
def test_004(self): # CARGAR EL JSON CON LOS VALORES DE LOS ID DE LA APP Selenium.get_json_file(self, "frames") # -------------------- IR A FRAME 2 -------------------- Selenium.switch_to_iframe(self, "Frame2") Selenium.select_by_text(self, "Frame2 Select", "Avatar") time.sleep(5) # -------------------- VOLVER AL FRAME PRINCIPAL -------------------- Selenium.switch_to_parentFrame(self) # -------------------- IR A FRAME 1 -------------------- Selenium.switch_to_iframe(self, "Frame1") Selenium.send_key_text(self, "Frame1 Input", "Hola Chicos Udemy") time.sleep(5) # -------------------- IR A FRAME 3 -------------------- Selenium.switch_to_iframe(self, "Frame3") Selenium.get_elements(self, "Frame3 Input").click()