Beispiel #1
0
 def cancel(self):
     wait_for_element_by_xpath(self.driver, self.CANCEL).click()
Beispiel #2
0
 def wait_for_color(self, color):
     wait_for_element_by_xpath(self.driver, self.COLOR_FORMAT.format(color))
Beispiel #3
0
 def save(self):
     wait_for_element_by_xpath(self.driver, self.SAVE).click()
Beispiel #4
0
 def wait_for_name(self, name):
     wait_for_element_by_xpath(self.driver, self.NAME_FORMAT.format(name))
Beispiel #5
0
 def wait_for_description(self, description):
     wait_for_element_by_xpath(self.driver, self.DESCRIPTION_FORMAT.format(description))
Beispiel #6
0
 def delete(self):
     wait_for_element_by_selector(self.driver, self.SETTINGS).click()
     wait_for_element_by_xpath(self.driver, self.DELETE).click()
Beispiel #7
0
 def open_modal(self):
     wait_for_element_by_selector(self.driver, self.SETTINGS).click()
     wait_for_element_by_xpath(self.driver, self.EDIT).click()
Beispiel #8
0
 def open_list(self, name):
     wait_for_element_by_xpath(self.driver, self.LIST_NAME.format(name)).click()
     wait_for_url_to_match(self.driver, TODO_LIST_URL_REGEX)
     splitted = self.driver.current_url.split('/')
     return splitted[len(splitted) - 1]
Beispiel #9
0
 def wait_for_list_to_disappear(self, name):
     wait_for_element_by_xpath(self.driver, self.LIST_NAME.format(name), visible=False)
Beispiel #10
0
 def wait_for_list(self, name):
     wait_for_element_by_xpath(self.driver, self.LIST_NAME.format(name))
Beispiel #11
0
 def delete_list(self, name):
     actionChains = ActionChains(self.driver)
     element = wait_for_element_by_xpath(self.driver, self.LIST_NAME.format(name))
     actionChains.context_click(element).perform()
     wait_for_element_by_xpath(self.driver, self.DELETE).click()
Beispiel #12
0
 def get_language(self):
     return wait_for_element_by_xpath(self.driver,
                                      self.CURRENT_LANG).get_attribute('id')