def mobile(context, name, value): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' assert str( el.get_attribute('value') ) == value, "Values do not match, expected %s but got %s" % ( value, el.get_attribute('value'))
def mobile(context, name): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' el.clear()
def android(context, name, value): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' el.click() # workaround for failing send_keys call el.send_keys(value)
def mobile(context, attr_name, name, value): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' assert str(el.get_attribute(attr_name)) == value, "Values do not match"
def mobile(context, name, value): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' assert str(el.get_attribute('value')) == value, "Values do not match, expected %s but got %s" % (value, el.get_attribute('value'))
def mobile(context, id, timeout): assert _retry(lambda: not find_device_element_by_name_or_id(context, id), timeout), u'Element was found'
def mobile(context, id): assert find_device_element_by_name_or_id(context, id) is None, u'Element was found'
def mobile(context, id): assert find_device_element_by_name_or_id( context, id) is None, u'Element was found'
def android(context, name): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' if el.get_attribute('checked') == u'true': el.click()
def ios(context, name): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' if el.get_attribute('value') == 1: el.click()
def mobile(context, name): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' el.clear()
def android(context, name, value): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' el.click() # workaround for failing send_keys call el.send_keys(value)
def mobile(context, attr_name, name, value): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' assert str(el.get_attribute(attr_name)) == value, "Values do not match"
def mobile(context, id, timeout): assert _retry( lambda: not find_device_element_by_name_or_id(context, id), timeout), u'Element was found'
def android(context, name): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' if el.get_attribute('checked') == u'false': el.click()
def mobile(context, id): assert find_device_element_by_name_or_id(context, id), u'Element not found'
def ios(context, name): el = find_device_element_by_name_or_id(context, name) assert el, u'Element not found' if el.get_attribute('value') == 1: el.click()
def mobile(context, id): assert find_device_element_by_name_or_id(context, id), u'Element not found'