def __action_add_cookie(self, action):
     '''
     addCookie
     :return:
     '''
     key = self.__get_value(action)
     DriverBase.add_cookie(key)
 def __action_delete_cookie(self, action):
     '''
     deleteCookie
     :return:
     '''
     key = self.__get_value(action)
     DriverBase.delete_cookie(key)
 def __action_refresh(self, action):
     '''
     refresh
     :param action:
     :return:
     '''
     DriverBase.refresh()
 def __action_forward(self, action):
     '''
     forward
     :param action:
     :return:
     '''
     DriverBase.forward()
 def __action_clear(self, action):
     '''
     clear
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.clear(element)
 def __action_close(self, action):
     """
     close
     :param action:
     :return:
     """
     DriverBase.close()
 def __action_quit(self, action):
     """
     行为执行:quit
     :param action:
     :return:
     """
     DriverBase.quit()
 def __action_switch_to_default_content(self, action):
     '''
     switchToDefaultContent
     :param action:
     :return:
     '''
     DriverBase.switch_to_default_content()
 def __action_back(self, action):
     '''
     back
     :param action:
     :return:
     '''
     DriverBase.back()
示例#10
0
 def __action_switch_to_parent_frame(self, action):
     '''
     switchToParentFrame
     :param action:
     :return:
     '''
     DriverBase.switch_to_parent_frame()
示例#11
0
 def __action_click_and_hold(self, action):
     '''
     holdClick
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.click_and_hold(element)
示例#12
0
 def __action_double_click(self, action):
     '''
     doubleClick
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.double_click(element)
示例#13
0
 def __action_submit(self, action):
     '''
     submit
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.submit(element)
示例#14
0
 def __action_open_url(self, action):
     """
     openUrl
     :param action:
     :return:
     """
     url = self.__get_value(action)
     DriverBase.open_url(url)
示例#15
0
 def __action_move_to_element(self, action):
     '''
     moveToElement
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.move_to_element(element)
示例#16
0
 def __action_context_click(self, action):
     '''
     contextClick
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.context_click(element)
示例#17
0
 def __action_switch_to_window(self, action):
     '''
     switchToWindow
     :param action:
     :return:
     '''
     handle = self.__get_value(action)
     DriverBase.switch_to_window(handle)
示例#18
0
 def __action_switch_to_frame(self, action):
     '''
     switchToFrame
     :param action:
     :return:
     '''
     frame_reference = self.__get_value(action)
     DriverBase.switch_to_frame(frame_reference)
示例#19
0
 def __action_set_window_size(self, action):
     '''
     setWindowSize
     :param :
     :return:
     '''
     width = self.__get_value(action)
     height = self.__get_value(action)
     DriverBase.set_window_size(float(width), float(height))
示例#20
0
 def __action_drag_and_drop(self, action):
     '''
     dragDrop
     :param action:
     :return:
     '''
     element = self.__get_element_info(action, 0)
     target = self.__get_element_info(action, 1)
     DriverBase.drag_and_drop(element, target)
示例#21
0
 def __action_set_window_position(self, action):
     '''
     setWindowPosition
     :param :
     :return:
     '''
     x = self.__get_value(action)
     y = self.__get_value(action, 1)
     DriverBase.set_window_position(float(x), float(y))
示例#22
0
 def __action_move_by_offset(self, action):
     '''
     moveByOffset
     :param action:
     :return:
     '''
     xoffset = self.__get_value(action, 0)
     yoffset = self.__get_value(action, 1)
     DriverBase.move_by_offset(float(xoffset), float(yoffset))
示例#23
0
 def __action_drag_and_drop_by_offset(self, action):
     '''
     dragDropByOffset
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     xoffset = self.__get_value(action, 1)
     yoffset = self.__get_value(action, 2)
     DriverBase.drag_and_drop_by_offse(element, float(xoffset),
                                       float(yoffset))
示例#24
0
 def __action_move_to_element_with_offset(self, action):
     '''
     moveToElementWithOffset
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     xoffset = self.__get_value(action, 1)
     yoffset = self.__get_value(action, 2)
     DriverBase.move_to_element_with_offset(element, float(xoffset),
                                            float(yoffset))
示例#25
0
 def __action_get_current_window_handle(self, action):
     '''
     getCurrentWindowHandle
     :param :
     :return:
     '''
     return DriverBase.get_current_window_handle()
示例#26
0
 def __action_get_current_url(self, action):
     '''
     getTitle
     :param :
     :return:
     '''
     return DriverBase.get_current_url()
示例#27
0
 def __action_get_window_handles(self, action):
     '''
     getWindowHandles
     :param :
     :return:
     '''
     return DriverBase.get_window_handles()
示例#28
0
 def __action_get_window_size(self, action):
     '''
     getWindowSize
     :param :
     :return:
     '''
     return DriverBase.get_window_size()
示例#29
0
 def __action_get_cookies(self, action):
     '''
     getCookies
     :param :
     :return:
     '''
     return DriverBase.get_cookies()
示例#30
0
 def __action_get_window_position(self, action):
     '''
     getWindowPosition
     :param :
     :return:
     '''
     return DriverBase.get_window_position()