def setBuis(self): comobj1 = base_class(self.driver) self.buisUsage.click() buisVal = self.driver.find_elements(By.TAG_NAME, Locator.tagLi) for buisSelect in buisVal: if buisSelect.text == "Ihr Unternehmen": buisSelect.click() comobj1.wait_untilvanish(buisSelect) break
def enter_usage(self): comobj1 = base_class(self.driver) self.purpose.click() purposeval = self.driver.find_elements(By.TAG_NAME, Locator.tagLi) for purposeSelect in purposeval: if purposeSelect.text == "Betriebsmittel": purposeSelect.click() comobj1.wait_untilvanish(purposeSelect) break
def enter_runningtime(self): comobj1 = base_class(self.driver) comobj1.wait_untilvanish(Locator.tagLi) self.time.click() timeval = self.driver.find_elements(By.TAG_NAME, Locator.tagLi) for timeselect in timeval: if timeselect.text == "6 Monate": timeselect.click() comobj1.wait_untilvanish(timeselect) break
def setRegister(self): self.sName.click() comobj2 = base_class(self.driver) comobj2.commonwait_until(Locator.register) self.register.click() sleep(2)
def enter_continue(self): comobj = base_class(self.driver) comobj.wait_untilvanish(Locator.tagLi) self.continueButton.click()