def sync_not_present(self, timeout=30): ''' Waits for element to clickable :param timeout: Allowed Time ''' WebDriverWait(self.driver, timeout).until_not(EC2.wait_for_present(self)) return self
def sync_not_css_value(self, attribute, value, timeout=30): '''Waits for element css attribute to not match value :param attribute: CSS Attribute name to match :param value: Value to match :param timeout: Allowed Time ''' WebDriverWait(self.driver, timeout).until(not EC2.wait_for_css_attribute_value(self)) return self
def sync_not_attribute_value(self, attribute, value, timeout=30): ''' Waits for element attribute to have value :param attribute: Attribute name to match :param value: Value to match :param timeout: Allowed Time ''' WebDriverWait(self.driver, timeout).until_not(EC2.wait_for_attribute_value(self, attribute, value)) return self
def sync_text_contains(self, text, timeout=30, ignore_case=False): ''' Waits for text attribute of element to contain provided string :param text: String for matching :param timeout: Allowed Time :param ignore_case: Optional Parameter to ignore case when matching ''' WebDriverWait(self.driver, timeout).until(EC2.wait_for_text_to_contain(self, text, ignore_case=ignore_case)) return self
def sync_css_value(self, attribute, value, timeout=30): '''Waits for element css attribute to match value :param attribute: CSS Attribute name to match :param value: Value to match :param timeout: Allowed Time ''' WebDriverWait(self.driver, timeout).until(EC2.wait_for_css_attribute_value(self)) return self
def sync_not_attribute_value(self, attribute, value, timeout=30): ''' Waits for element attribute to have value :param attribute: Attribute name to match :param value: Value to match :param timeout: Allowed Time ''' WebDriverWait(self.driver, timeout).until_not( EC2.wait_for_attribute_value(self, attribute, value)) return self
def sync_text_contains(self, text, timeout=30, ignore_case=False): ''' Waits for text attribute of element to contain provided string :param text: String for matching :param timeout: Allowed Time :param ignore_case: Optional Parameter to ignore case when matching ''' WebDriverWait(self.driver, timeout).until( EC2.wait_for_text_to_contain(self, text, ignore_case=ignore_case)) return self