def click(self, by_locator): WebDriverWait(self.driver, Data.TIMEOUT).until(EC.element_to_be_clickable(by_locator)).click() time.sleep(Functions.get_time_step())
def search_elements(self, by_locator): time.sleep(Functions.get_time_step()) return self.driver.find_elements(by_locator[0],by_locator[1])
def set_transport(self, locator): print(f'Defining transport: {self.transport} ...') self.click(locator) time.sleep(Functions.get_time_step())