Skip to content

Commit bed68d1

Browse files
authored
[js] Remove legacy JWP support and w3c<boolean> switch (#10095)
1 parent 5c3ae44 commit bed68d1

File tree

3 files changed

+55
-187
lines changed

3 files changed

+55
-187
lines changed

‎javascript/node/selenium-webdriver/lib/command.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class Command {
8383
* will support.
8484
* @enum {string}
8585
*/
86-
// TODO: Delete obsolete command names.
8786
const Name = {
8887
GET_SERVER_STATUS: 'getStatus',
8988

@@ -115,14 +114,9 @@ const Name = {
115114
CLEAR_ELEMENT: 'clearElement',
116115
CLICK_ELEMENT: 'clickElement',
117116
SEND_KEYS_TO_ELEMENT: 'sendKeysToElement',
118-
SUBMIT_ELEMENT: 'submitElement',
119117

120118
GET_CURRENT_WINDOW_HANDLE: 'getCurrentWindowHandle',
121119
GET_WINDOW_HANDLES: 'getWindowHandles',
122-
GET_WINDOW_POSITION: 'getWindowPosition',
123-
SET_WINDOW_POSITION: 'setWindowPosition',
124-
GET_WINDOW_SIZE: 'getWindowSize',
125-
SET_WINDOW_SIZE: 'setWindowSize',
126120
GET_WINDOW_RECT: 'getWindowRect',
127121
SET_WINDOW_RECT: 'setWindowRect',
128122
MAXIMIZE_WINDOW: 'maximizeWindow',
@@ -146,17 +140,14 @@ const Name = {
146140
IS_ELEMENT_SELECTED: 'isElementSelected',
147141
IS_ELEMENT_ENABLED: 'isElementEnabled',
148142
IS_ELEMENT_DISPLAYED: 'isElementDisplayed',
149-
GET_ELEMENT_LOCATION: 'getElementLocation',
150-
GET_ELEMENT_LOCATION_IN_VIEW: 'getElementLocationOnceScrolledIntoView',
151143
GET_ELEMENT_RECT: 'getElementRect',
152-
GET_ELEMENT_SIZE: 'getElementSize',
153144
GET_ELEMENT_ATTRIBUTE: 'getElementAttribute',
145+
GET_DOM_ATTRIBUTE: 'getDomAttribute',
154146
GET_ELEMENT_VALUE_OF_CSS_PROPERTY: 'getElementValueOfCssProperty',
155147
GET_ELEMENT_PROPERTY: 'getElementProperty',
156148

157149
SCREENSHOT: 'screenshot',
158150
TAKE_ELEMENT_SCREENSHOT: 'takeElementScreenshot',
159-
SET_SCRIPT_TIMEOUT: 'setScriptTimeout',
160151

161152
PRINT_PAGE: 'printPage',
162153

@@ -175,7 +166,6 @@ const Name = {
175166

176167
GET_AVAILABLE_LOG_TYPES: 'getAvailableLogTypes',
177168
GET_LOG: 'getLog',
178-
GET_SESSION_LOGS: 'getSessionLogs',
179169

180170
// Non-standard commands used by the standalone Selenium server.
181171
UPLOAD_FILE: 'uploadFile',

0 commit comments

Comments
 (0)