예제 #1
0
 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())
예제 #2
0
 def search_elements(self, by_locator):
     time.sleep(Functions.get_time_step())
     return self.driver.find_elements(by_locator[0],by_locator[1])
예제 #3
0
 def set_transport(self, locator):
     print(f'Defining transport: {self.transport} ...')
     self.click(locator)
     time.sleep(Functions.get_time_step())