Ejemplo n.º 1
0
 def delete(self):
     check_visible(self._DELETE_XPATH, self.driver)
     del_btn = self.driver.find_element_by_xpath(self._DELETE_XPATH)
     del_btn.click()
     check_visible(self._DEL_YES_XPATH, self.driver)
     del_yes = self.driver.find_element_by_xpath(self._DEL_YES_XPATH)
     del_yes.click()
Ejemplo n.º 2
0
 def delete(self):
     hdr = self.driver.find_element_by_xpath(self.HDR_XPATH)
     hdr.click()
     check_visible(self.HDR_XPATH + self._FORM_XPATH_ADDITION, self.driver)
     aud_form = self.get_form()
     aud_form.delete()
     check_invisible(self.HDR_XPATH, self.driver)
Ejemplo n.º 3
0
 def edit_save(self):
     button = self.driver.find_element_by_xpath(self.BUTTON_SUBMIT)
     button.click()
     check_visible(ProfilePage.MESSAGE_OK, self.driver, 5)
Ejemplo n.º 4
0
 def check_has_error(self):
     return check_visible(self.ERR_MSG_XPATH, self.driver)
Ejemplo n.º 5
0
 def get_aud_element(self, name):
     if check_visible(AudienceElement.HDR_XPATH_TMPL % name, self.driver, ttl=7):
         return AudienceElement(self.driver, name);
     else:
         return None
Ejemplo n.º 6
0
 def get_create_aud_form(self):
     create_aud_btn = self.driver.find_element_by_xpath(self.AUD_CREATE_BTN_XPATH)
     create_aud_btn.click()
     aud_form = AudienceForm(self.driver)
     check_visible(aud_form.FORM_XPATH, self.driver)
     return aud_form
Ejemplo n.º 7
0
 def has_create_aud_btn(self):
     return check_visible(self.AUD_CREATE_BTN_XPATH, self.driver)
Ejemplo n.º 8
0
 def get_vk_group_adder(self):
     check_visible(self.VK_BTN_XPATH, self.driver)
     vk_btn = self.driver.find_element_by_xpath(self.VK_BTN_XPATH)
     vk_btn.click()
     return VKGroupAdder(self.driver)
Ejemplo n.º 9
0
 def check_has_source_error(self):
     return check_visible(self._SOURCE_ERR_XPATH, self.driver)
Ejemplo n.º 10
0
 def submit(self):
     check_visible(self._SUBMIT_XPATH, self.driver)
     submit_btn = self.driver.find_element_by_xpath(self._SUBMIT_XPATH)
     submit_btn.click()
     check_invisible(self._SELF_XPATH, self.driver)
Ejemplo n.º 11
0
 def input_name(self, name):
     check_visible(self._NAME_XPATH, self.driver)
     name_input = self.driver.find_element_by_xpath(self._NAME_XPATH)
     name_input.clear()
     name_input.send_keys(name)
Ejemplo n.º 12
0
 def check_has_helper(self):
     return check_visible(self.HELPER_XPATH, self.driver, ttl=5)
Ejemplo n.º 13
0
 def check_has_ctr(self, id):
     return check_visible(self.TOP_CTR_ID_XPATH_TMPL % id, self.driver)