Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 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