selenium.webdriver.remote.command

1. class selenium.webdriver.remote.command.Command

定义标准 WebDriver 命令的常量。

虽然这些常量本身没有任何意义,但它们用于通过实现 WebDriver 远程线协议的服务来编组命令:

https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol

1.1. ACCEPT_ALERT = 'acceptAlert'

1.2. ADD_COOKIE = 'addCookie'

1.3. CLEAR_APP_CACHE = 'clearAppCache'

1.4. CLEAR_ELEMENT = 'clearElement'

1.5. CLEAR_LOCAL_STORAGE = 'clearLocalStorage'

1.6. CLEAR_SESSION_STORAGE = 'clearSessionStorage'¶

1.7. CLICK = 'mouseClick'

1.8. CLICK_ELEMENT = 'clickElement'

1.9. CLOSE = 'close'

1.10. CONTEXT_HANDLES = 'getContextHandles'

1.11. CURRENT_CONTEXT_HANDLE = 'getCurrentContextHandle'

1.12. DELETE_ALL_COOKIES = 'deleteAllCookies'

1.13. DELETE_COOKIE = 'deleteCookie'

1.14. DELETE_SESSION = 'deleteSession'

1.15. DISMISS_ALERT = 'dismissAlert'

1.16. DOUBLE_CLICK = 'mouseDoubleClick'

1.17. DOUBLE_TAP = 'touchDoubleTap'

1.18. ELEMENT_EQUALS = 'elementEquals'

1.19. ELEMENT_SCREENSHOT = 'elementScreenshot'

1.20. EXECUTE_ASYNC_SCRIPT = 'executeAsyncScript'

1.21. EXECUTE_SCRIPT = 'executeScript'

1.22. EXECUTE_SQL = 'executeSql'

1.23. FIND_CHILD_ELEMENT = 'findChildElement'

1.24. FIND_CHILD_ELEMENTS = 'findChildElements'

1.25. FIND_ELEMENT = 'findElement'

1.26. FIND_ELEMENTS = 'findElements'

1.27. FLICK = 'touchFlick'

1.28. FULLSCREEN_WINDOW = 'fullscreenWindow'

1.29. GET = 'get'

1.30. GET_ACTIVE_ELEMENT = 'getActiveElement'

1.31. GET_ALERT_TEXT = 'getAlertText'

1.32. GET_ALL_COOKIES = 'getCookies'

1.33. GET_ALL_SESSIONS = 'getAllSessions'

1.34. GET_APP_CACHE = 'getAppCache'

1.35. GET_APP_CACHE_STATUS = 'getAppCacheStatus'

1.36. GET_AVAILABLE_LOG_TYPES = 'getAvailableLogTypes'

1.37. GET_COOKIE = 'getCookie'

1.38. GET_CURRENT_URL = 'getCurrentUrl'

1.39. GET_CURRENT_WINDOW_HANDLE = 'getCurrentWindowHandle'

1.40. GET_ELEMENT_ATTRIBUTE = 'getElementAttribute'

1.41. GET_ELEMENT_LOCATION = 'getElementLocation'

1.42. GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW = 'getElementLocationOnceScrolledIntoView'

1.43. GET_ELEMENT_PROPERTY = 'getElementProperty'

1.44. GET_ELEMENT_RECT = 'getElementRect'

1.45. GET_ELEMENT_SIZE = 'getElementSize'

1.46. GET_ELEMENT_TAG_NAME = 'getElementTagName'

1.47. GET_ELEMENT_TEXT = 'getElementText'

1.48. GET_ELEMENT_VALUE = 'getElementValue'

1.49. GET_ELEMENT_VALUE_OF_CSS_PROPERTY = 'getElementValueOfCssProperty'

1.50. GET_LOCAL_STORAGE_ITEM = 'getLocalStorageItem'

1.51. GET_LOCAL_STORAGE_KEYS = 'getLocalStorageKeys'

1.52. GET_LOCAL_STORAGE_SIZE = 'getLocalStorageSize'

1.53. GET_LOCATION = 'getLocation'

1.54. GET_LOG = 'getLog'

1.55. GET_NETWORK_CONNECTION = 'getNetworkConnection'

1.56. GET_PAGE_SOURCE = 'getPageSource'

1.57. GET_SCREEN_ORIENTATION = 'getScreenOrientation'

1.58. GET_SESSION_STORAGE_ITEM = 'getSessionStorageItem'

1.59. GET_SESSION_STORAGE_KEYS = 'getSessionStorageKeys'

1.60. GET_SESSION_STORAGE_SIZE = 'getSessionStorageSize'

1.61. GET_TITLE = 'getTitle'

1.62. GET_WINDOW_HANDLES = 'getWindowHandles'

1.63. GET_WINDOW_POSITION = 'getWindowPosition'

1.64. GET_WINDOW_RECT = 'getWindowRect'

1.65. GET_WINDOW_SIZE = 'getWindowSize'

1.66. GO_BACK = 'goBack'

1.67. GO_FORWARD = 'goForward'

1.68. IMPLICIT_WAIT = 'implicitlyWait'

1.69. IS_ELEMENT_DISPLAYED = 'isElementDisplayed'

1.70. IS_ELEMENT_ENABLED = 'isElementEnabled'

1.71. IS_ELEMENT_SELECTED = 'isElementSelected'

1.72. LONG_PRESS = 'touchLongPress'

1.73. MAXIMIZE_WINDOW = 'windowMaximize'

1.74. MINIMIZE_WINDOW = 'minimizeWindow'

1.75. MOUSE_DOWN = 'mouseButtonDown'

1.76. MOUSE_UP = 'mouseButtonUp'

1.77. MOVE_TO = 'mouseMoveTo'

1.78. NEW_SESSION = 'newSession'

1.79. QUIT = 'quit'

1.80. REFRESH = 'refresh'

1.81. REMOVE_LOCAL_STORAGE_ITEM = 'removeLocalStorageItem'

1.82. REMOVE_SESSION_STORAGE_ITEM = 'removeSessionStorageItem'

1.83. SCREENSHOT = 'screenshot'

1.84. SEND_KEYS_TO_ACTIVE_ELEMENT = 'sendKeysToActiveElement'

1.85. SEND_KEYS_TO_ELEMENT = 'sendKeysToElement'

1.86. SET_ALERT_CREDENTIALS = 'setAlertCredentials'

1.87. SET_ALERT_VALUE = 'setAlertValue'

1.88. SET_ELEMENT_SELECTED = 'setElementSelected'

1.89. SET_LOCAL_STORAGE_ITEM = 'setLocalStorageItem'

1.90. SET_LOCATION = 'setLocation'

1.91. SET_NETWORK_CONNECTION = 'setNetworkConnection'

1.92. SET_SCREEN_ORIENTATION = 'setScreenOrientation'

1.93. SET_SCRIPT_TIMEOUT = 'setScriptTimeout'

1.94. SET_SESSION_STORAGE_ITEM = 'setSessionStorageItem'

1.95. SET_TIMEOUTS = 'setTimeouts'

1.96. SET_WINDOW_POSITION = 'setWindowPosition'

1.97. SET_WINDOW_RECT = 'setWindowRect'

1.98. SET_WINDOW_SIZE = 'setWindowSize'

1.99. SINGLE_TAP = 'touchSingleTap'

1.100. STATUS = 'status'

1.101. SUBMIT_ELEMENT = 'submitElement'

1.102. SWITCH_TO_CONTEXT = 'switchToContext'

1.103. SWITCH_TO_FRAME = 'switchToFrame'

1.104. SWITCH_TO_PARENT_FRAME = 'switchToParentFrame'

1.105. SWITCH_TO_WINDOW = 'switchToWindow'

1.106. TOUCH_DOWN = 'touchDown'

1.107. TOUCH_MOVE = 'touchMove'

1.108. TOUCH_SCROLL = 'touchScroll'

1.109. TOUCH_UP = 'touchUp'

1.110. UPLOAD_FILE = 'uploadFile'

1.111. W3C_ACCEPT_ALERT = 'w3cAcceptAlert'

1.112. W3C_ACTIONS = 'actions'

1.113. W3C_CLEAR_ACTIONS = 'clearActionState'

1.114. W3C_DISMISS_ALERT = 'w3cDismissAlert'

1.115. W3C_EXECUTE_SCRIPT = 'w3cExecuteScript'

1.116. W3C_EXECUTE_SCRIPT_ASYNC = 'w3cExecuteScriptAsync'

1.117. W3C_GET_ACTIVE_ELEMENT = 'w3cGetActiveElement'

1.118. W3C_GET_ALERT_TEXT = 'w3cGetAlertText'

1.119. W3C_GET_CURRENT_WINDOW_HANDLE = 'w3cGetCurrentWindowHandle'

1.120. W3C_GET_WINDOW_HANDLES = 'w3cGetWindowHandles'

1.121. W3C_GET_WINDOW_POSITION = 'w3cGetWindowPosition'

1.122. W3C_GET_WINDOW_SIZE = 'w3cGetWindowSize'

1.123. W3C_MAXIMIZE_WINDOW = 'w3cMaximizeWindow'

1.124. W3C_SET_ALERT_VALUE = 'w3cSetAlertValue'

1.125. W3C_SET_WINDOW_POSITION = 'w3cSetWindowPosition'

1.126. W3C_SET_WINDOW_SIZE = 'w3cSetWindowSize'

© 2020 刘士. All rights reserved.

结果匹配 ""

    没有匹配的结果 ""