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()
def __action_switch_to_parent_frame(self, action): ''' switchToParentFrame :param action: :return: ''' DriverBase.switch_to_parent_frame()
def __action_click_and_hold(self, action): ''' holdClick :param action: :return: ''' element = self.__get_element_info(action) DriverBase.click_and_hold(element)
def __action_double_click(self, action): ''' doubleClick :param action: :return: ''' element = self.__get_element_info(action) DriverBase.double_click(element)
def __action_submit(self, action): ''' submit :param action: :return: ''' element = self.__get_element_info(action) DriverBase.submit(element)
def __action_open_url(self, action): """ openUrl :param action: :return: """ url = self.__get_value(action) DriverBase.open_url(url)
def __action_move_to_element(self, action): ''' moveToElement :param action: :return: ''' element = self.__get_element_info(action) DriverBase.move_to_element(element)
def __action_context_click(self, action): ''' contextClick :param action: :return: ''' element = self.__get_element_info(action) DriverBase.context_click(element)
def __action_switch_to_window(self, action): ''' switchToWindow :param action: :return: ''' handle = self.__get_value(action) DriverBase.switch_to_window(handle)
def __action_switch_to_frame(self, action): ''' switchToFrame :param action: :return: ''' frame_reference = self.__get_value(action) DriverBase.switch_to_frame(frame_reference)
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))
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)
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))
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))
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))
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))
def __action_get_current_window_handle(self, action): ''' getCurrentWindowHandle :param : :return: ''' return DriverBase.get_current_window_handle()
def __action_get_current_url(self, action): ''' getTitle :param : :return: ''' return DriverBase.get_current_url()
def __action_get_window_handles(self, action): ''' getWindowHandles :param : :return: ''' return DriverBase.get_window_handles()
def __action_get_window_size(self, action): ''' getWindowSize :param : :return: ''' return DriverBase.get_window_size()
def __action_get_cookies(self, action): ''' getCookies :param : :return: ''' return DriverBase.get_cookies()
def __action_get_window_position(self, action): ''' getWindowPosition :param : :return: ''' return DriverBase.get_window_position()