Example #1
0
 def test_button(self):
     if driver.current_test['actionType'] == 'click':  #click operation
         component = driver.global_driver.find_element_by_id(
             driver.current_test['resourceId'])
         component.click()
         buttonOperations.check_expected_result(self)
     elif driver.current_test['actionType'] == 'over':  #move operation
         component = driver.global_driver.find_element_by_id(
             driver.current_test['resourceId'])
         actions = ActionChains(driver)
         actions.move_to(component, 10, 10)
         actions.perform()
         buttonOperations.check_expected_result(self)