예제 #1
0
 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'))
예제 #2
0
파일: forms.py 프로젝트: galuszkak/behaving
 def mobile(context, name):
     el = find_device_element_by_name_or_id(context, name)
     assert el, u'Element not found'
     el.clear()
예제 #3
0
파일: forms.py 프로젝트: galuszkak/behaving
 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)
예제 #4
0
파일: forms.py 프로젝트: galuszkak/behaving
 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"
예제 #5
0
파일: forms.py 프로젝트: galuszkak/behaving
 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'))
예제 #6
0
파일: basic.py 프로젝트: galuszkak/behaving
 def mobile(context, id, timeout):
     assert _retry(lambda: not find_device_element_by_name_or_id(context, id), timeout), u'Element was found'
예제 #7
0
파일: basic.py 프로젝트: galuszkak/behaving
 def mobile(context, id):
     assert find_device_element_by_name_or_id(context, id) is None, u'Element was found'
예제 #8
0
 def mobile(context, id):
     assert find_device_element_by_name_or_id(
         context, id) is None, u'Element was found'
예제 #9
0
 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()
예제 #10
0
 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()
예제 #11
0
 def mobile(context, name):
     el = find_device_element_by_name_or_id(context, name)
     assert el, u'Element not found'
     el.clear()
예제 #12
0
 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)
예제 #13
0
 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"
예제 #14
0
 def mobile(context, id, timeout):
     assert _retry(
         lambda: not find_device_element_by_name_or_id(context, id),
         timeout), u'Element was found'
예제 #15
0
파일: forms.py 프로젝트: galuszkak/behaving
 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()
예제 #16
0
파일: basic.py 프로젝트: galuszkak/behaving
 def mobile(context, id):
     assert find_device_element_by_name_or_id(context, id), u'Element not found'
예제 #17
0
파일: forms.py 프로젝트: galuszkak/behaving
 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()
예제 #18
0
 def mobile(context, id):
     assert find_device_element_by_name_or_id(context,
                                              id), u'Element not found'