Ejemplo n.º 1
0
 def __action_add_cookie(self, action):
     '''
     addCookie
     :return:
     '''
     key = self.__get_value(action)
     DriverBase.add_cookie(key)
Ejemplo n.º 2
0
 def __action_delete_cookie(self, action):
     '''
     deleteCookie
     :return:
     '''
     key = self.__get_value(action)
     DriverBase.delete_cookie(key)
Ejemplo n.º 3
0
 def __action_refresh(self, action):
     '''
     refresh
     :param action:
     :return:
     '''
     DriverBase.refresh()
Ejemplo n.º 4
0
 def __action_forward(self, action):
     '''
     forward
     :param action:
     :return:
     '''
     DriverBase.forward()
Ejemplo n.º 5
0
 def __action_clear(self, action):
     '''
     clear
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.clear(element)
Ejemplo n.º 6
0
 def __action_close(self, action):
     """
     close
     :param action:
     :return:
     """
     DriverBase.close()
Ejemplo n.º 7
0
 def __action_quit(self, action):
     """
     行为执行:quit
     :param action:
     :return:
     """
     DriverBase.quit()
Ejemplo n.º 8
0
 def __action_switch_to_default_content(self, action):
     '''
     switchToDefaultContent
     :param action:
     :return:
     '''
     DriverBase.switch_to_default_content()
Ejemplo n.º 9
0
 def __action_back(self, action):
     '''
     back
     :param action:
     :return:
     '''
     DriverBase.back()
Ejemplo n.º 10
0
 def __action_switch_to_parent_frame(self, action):
     '''
     switchToParentFrame
     :param action:
     :return:
     '''
     DriverBase.switch_to_parent_frame()
Ejemplo n.º 11
0
 def __action_click_and_hold(self, action):
     '''
     holdClick
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.click_and_hold(element)
Ejemplo n.º 12
0
 def __action_double_click(self, action):
     '''
     doubleClick
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.double_click(element)
Ejemplo n.º 13
0
 def __action_submit(self, action):
     '''
     submit
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.submit(element)
Ejemplo n.º 14
0
 def __action_open_url(self, action):
     """
     openUrl
     :param action:
     :return:
     """
     url = self.__get_value(action)
     DriverBase.open_url(url)
Ejemplo n.º 15
0
 def __action_move_to_element(self, action):
     '''
     moveToElement
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.move_to_element(element)
Ejemplo n.º 16
0
 def __action_context_click(self, action):
     '''
     contextClick
     :param action:
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.context_click(element)
Ejemplo n.º 17
0
 def __action_switch_to_window(self, action):
     '''
     switchToWindow
     :param action:
     :return:
     '''
     handle = self.__get_value(action)
     DriverBase.switch_to_window(handle)
Ejemplo n.º 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)
Ejemplo n.º 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))
Ejemplo n.º 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)
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 25
0
 def __action_get_current_window_handle(self, action):
     '''
     getCurrentWindowHandle
     :param :
     :return:
     '''
     return DriverBase.get_current_window_handle()
Ejemplo n.º 26
0
 def __action_get_current_url(self, action):
     '''
     getTitle
     :param :
     :return:
     '''
     return DriverBase.get_current_url()
Ejemplo n.º 27
0
 def __action_get_window_handles(self, action):
     '''
     getWindowHandles
     :param :
     :return:
     '''
     return DriverBase.get_window_handles()
Ejemplo n.º 28
0
 def __action_get_window_size(self, action):
     '''
     getWindowSize
     :param :
     :return:
     '''
     return DriverBase.get_window_size()
Ejemplo n.º 29
0
 def __action_get_cookies(self, action):
     '''
     getCookies
     :param :
     :return:
     '''
     return DriverBase.get_cookies()
Ejemplo n.º 30
0
 def __action_get_window_position(self, action):
     '''
     getWindowPosition
     :param :
     :return:
     '''
     return DriverBase.get_window_position()