Пример #1
0
 def __action_add_cookie(self, action):
     '''
     addCookie
     :return:
     '''
     key = self.__get_value(action)
     DriverBase.add_cookie(key)
Пример #2
0
 def __action_delete_cookie(self, action):
     '''
     deleteCookie
     :return:
     '''
     key = self.__get_value(action)
     DriverBase.delete_cookie(key)
Пример #3
0
 def __action_refresh(self, action):
     '''
     refresh
     :param action:
     :return:
     '''
     DriverBase.refresh()
Пример #4
0
 def __action_forward(self, action):
     '''
     forward
     :param action:
     :return:
     '''
     DriverBase.forward()
Пример #5
0
 def __action_clear(self, action):
     '''
     clear
     :return:
     '''
     element = self.__get_element_info(action)
     DriverBase.clear(element)
Пример #6
0
 def __action_close(self, action):
     """
     close
     :param action:
     :return:
     """
     DriverBase.close()
Пример #7
0
 def __action_quit(self, action):
     """
     行为执行:quit
     :param action:
     :return:
     """
     DriverBase.quit()
Пример #8
0
 def __action_switch_to_default_content(self, action):
     '''
     switchToDefaultContent
     :param action:
     :return:
     '''
     DriverBase.switch_to_default_content()
Пример #9
0
 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()