|
1 | 1 | {
|
| 2 | + "newSession": { |
| 3 | + "prefix": "wdnewSession", |
| 4 | + "body": "browser.newSession(${1:capabilities})", |
| 5 | + "description": "creates a new WebDriver session with the endpoint node" |
| 6 | + }, |
| 7 | + "deleteSession": { |
| 8 | + "prefix": "wddeleteSession", |
| 9 | + "body": "browser.deleteSession()", |
| 10 | + "description": "closes any top-level browsing contexts associated with the current session" |
| 11 | + }, |
| 12 | + "status": { |
| 13 | + "prefix": "wdstatus", |
| 14 | + "body": "browser.status()", |
| 15 | + "description": "returns information about whether a remote end is in a state" |
| 16 | + }, |
| 17 | + "getTimeouts": { |
| 18 | + "prefix": "wdgetTimeouts", |
| 19 | + "body": "browser.getTimeouts()", |
| 20 | + "description": "Short way to call the findElements command" |
| 21 | + }, |
| 22 | + "setTimeouts": { |
| 23 | + "prefix": "wdsetTimeouts", |
| 24 | + "body": "browser.setTimeouts(${1:implicit}, ${2:pageLoad}, ${3:script})", |
| 25 | + "description": "Set Timeouts command sets timeout durations associated with the current session" |
| 26 | + }, |
| 27 | + "getUrl": { |
| 28 | + "prefix": "wdgetUrl", |
| 29 | + "body": "browser.getUrl()", |
| 30 | + "description": "returns the URL of the current top-level browsing context" |
| 31 | + }, |
| 32 | + "navigateTo": { |
| 33 | + "prefix": "wdnavigateTo", |
| 34 | + "body": "browser.navigateTo(${1:url})", |
| 35 | + "description": "used to cause the user agent to navigate the current top-level browsing context a new location" |
| 36 | + }, |
| 37 | + "back": { |
| 38 | + "prefix": "wdback", |
| 39 | + "body": "browser.back()", |
| 40 | + "description": "Back command causes the browser to traverse one step backward" |
| 41 | + }, |
| 42 | + "forward": { |
| 43 | + "prefix": "wdforward", |
| 44 | + "body": "browser.forward()", |
| 45 | + "description": "uForward command causes the browser to traverse one step forward" |
| 46 | + }, |
| 47 | + "refresh": { |
| 48 | + "prefix": "wdrefresh", |
| 49 | + "body": "browser.refresh()", |
| 50 | + "description": "Refresh command causes the browser to reload the page" |
| 51 | + }, |
| 52 | + "getTitle": { |
| 53 | + "prefix": "wdgetTitle", |
| 54 | + "body": "browser.getTitle()", |
| 55 | + "description": "returns the document title of the current top-level browsing context" |
| 56 | + }, |
| 57 | + "getWindowHandle": { |
| 58 | + "prefix": "wdgetWindowHandle", |
| 59 | + "body": "browser.getWindowHandle()", |
| 60 | + "description": "returns the window handle for the current top-level browsing context" |
| 61 | + }, |
| 62 | + "closeWindow": { |
| 63 | + "prefix": "wdcloseWindow", |
| 64 | + "body": "browser.closeWindow()", |
| 65 | + "description": "closes the current top-level browsing context" |
| 66 | + }, |
| 67 | + "switchToWindow": { |
| 68 | + "prefix": "wdswitchToWindow", |
| 69 | + "body": "browser.switchToWindow(${1:handle})", |
| 70 | + "description": "used to select the current top-level browsing context for the current session" |
| 71 | + }, |
| 72 | + "createWindow": { |
| 73 | + "prefix": "wdcreateWindow", |
| 74 | + "body": "browser.createWindow(${1:type})", |
| 75 | + "description": "Create a new top-level browsing context" |
| 76 | + }, |
| 77 | + "getWindowHandles": { |
| 78 | + "prefix": "wdgetWindowHandles", |
| 79 | + "body": "browser.getWindowHandles()", |
| 80 | + "description": "returns a list of window handles for every open top-level browsing context" |
| 81 | + }, |
| 82 | + "switchToFrame": { |
| 83 | + "prefix": "wdswitchToFrame", |
| 84 | + "body": "browser.switchToFrame(${1:id})", |
| 85 | + "description": "to select the current top-level browsing context or a child browsing context of the current browsing context" |
| 86 | + }, |
| 87 | + "switchToParentFrame": { |
| 88 | + "prefix": "wdswitchToParentFrame", |
| 89 | + "body": "browser.switchToParentFrame()", |
| 90 | + "description": "sets the current browsing context for future commands to the parent of the current browsing context" |
| 91 | + }, |
| 92 | + "getWindowRect": { |
| 93 | + "prefix": "wdgetWindowRect", |
| 94 | + "body": "browser.getWindowRect()", |
| 95 | + "description": "returns the size and position on the screen" |
| 96 | + }, |
| 97 | + "setWindowRect": { |
| 98 | + "prefix": "wdsetWindowRect", |
| 99 | + "body": "browser.setWindowRect(${1:x}, ${2:y}, ${3:width}, ${4:height})", |
| 100 | + "description": "alters the size and the position of the operating system window" |
| 101 | + }, |
| 102 | + "maximizeWindow": { |
| 103 | + "prefix": "wdmaximizeWindow", |
| 104 | + "body": "browser.maximizeWindow()", |
| 105 | + "description": "invokes the window manager-specific 'maximize' operation" |
| 106 | + }, |
| 107 | + "minimizeWindow": { |
| 108 | + "prefix": "wdminimizeWindow", |
| 109 | + "body": "browser.minimizeWindow()", |
| 110 | + "description": "invokes the window manager-specific 'minimizeWindow' operation" |
| 111 | + }, |
| 112 | + "fullscreenWindow": { |
| 113 | + "prefix": "wdfullscreenWindow", |
| 114 | + "body": "browser.fullscreenWindow()", |
| 115 | + "description": "invokes the window manager-specific 'fullscreenWindow' operation" |
| 116 | + }, |
| 117 | + "findElement": { |
| 118 | + "prefix": "wdfindElement", |
| 119 | + "body": "browser.findElement(${1:using}, ${2:value})", |
| 120 | + "description": "to find an element in the current browsing context" |
| 121 | + }, |
| 122 | + "findElements": { |
| 123 | + "prefix": "wdfindElements", |
| 124 | + "body": "browser.findElements(${1:using}, ${2:value})", |
| 125 | + "description": "to find an elements in the current browsing context" |
| 126 | + }, |
| 127 | + "findElementFromElement": { |
| 128 | + "prefix": "wdfindElementFromElement", |
| 129 | + "body": "browser.findElementFromElement(${1:elementId}, ${2:using}, ${3:value})", |
| 130 | + "description": "used to find an element from a web element in the current browsing context" |
| 131 | + }, |
| 132 | + "findElementsFromElement": { |
| 133 | + "prefix": "wdfindElementsFromElement", |
| 134 | + "body": "browser.findElementsFromElement(${1:elementId}, ${2:using}, ${3:value})", |
| 135 | + "description": "used to find an elements from a web element in the current browsing context" |
| 136 | + }, |
| 137 | + "getActiveElement": { |
| 138 | + "prefix": "wdgetActiveElement", |
| 139 | + "body": "browser.getActiveElement()", |
| 140 | + "description": " returns the active element of the current browsing context" |
| 141 | + }, |
| 142 | + "isElementSelected": { |
| 143 | + "prefix": "wdisElementSelected", |
| 144 | + "body": "browser.isElementSelected(${1:elementId})", |
| 145 | + "description": "determines if the referenced element is selected or not" |
| 146 | + }, |
| 147 | + "isElementDisplayed": { |
| 148 | + "prefix": "wdisElementDisplayed", |
| 149 | + "body": "browser.isElementDisplayed(${1:elementId})", |
| 150 | + "description": "determines the visibility of an element" |
| 151 | + }, |
| 152 | + "getElementAttribute": { |
| 153 | + "prefix": "wdgetElementAttribute", |
| 154 | + "body": "browser.getElementAttribute(${1:elementId}, ${2:name})", |
| 155 | + "description": "return the attribute of a web element" |
| 156 | + }, |
| 157 | + "getElementProperty": { |
| 158 | + "prefix": "wdgetElementProperty", |
| 159 | + "body": "browser.getElementProperty(${1:elementId}, ${2:name})", |
| 160 | + "description": "return the result of getting a property of an element" |
| 161 | + }, |
| 162 | + "getElementCSSValue": { |
| 163 | + "prefix": "wdgetElementCSSValue", |
| 164 | + "body": "browser.getElementCSSValue(${1:elementId}, ${2:propertyName})", |
| 165 | + "description": "retrieves the computed value of the given CSS property" |
| 166 | + }, |
| 167 | + "getElementText": { |
| 168 | + "prefix": "wdgetElementText", |
| 169 | + "body": "browser.getElementText(${1:elementId})", |
| 170 | + "description": "return an element’s text 'as rendered'" |
| 171 | + }, |
| 172 | + "getElementTagName": { |
| 173 | + "prefix": "wdgetElementTagName", |
| 174 | + "body": "browser.getElementTagName(${1:elementId})", |
| 175 | + "description": "returns the qualified element name of the given web element" |
| 176 | + }, |
| 177 | + "getElementRect": { |
| 178 | + "prefix": "wdgetElementRect", |
| 179 | + "body": "browser.getElementRect(${1:elementId})", |
| 180 | + "description": "returns the dimensions and coordinates of the given web element" |
| 181 | + }, |
| 182 | + "isElementEnabled": { |
| 183 | + "prefix": "wdisElementEnabled", |
| 184 | + "body": "browser.isElementEnabled(${1:elementId})", |
| 185 | + "description": "determines if the referenced element is enabled or not" |
| 186 | + }, |
| 187 | + "elementClick": { |
| 188 | + "prefix": "wdelementClick", |
| 189 | + "body": "browser.elementClick(${1:elementId})", |
| 190 | + "description": "scrolls into view the element if it is not already pointer-interactable, and clicks its in-view center point" |
| 191 | + }, |
| 192 | + "elementClear": { |
| 193 | + "prefix": "wdelementClear", |
| 194 | + "body": "browser.elementClear(${1:elementId})", |
| 195 | + "description": "scrolls into view an editable or resettable element and then attempts to clear" |
| 196 | + }, |
| 197 | + "elementSendKeys": { |
| 198 | + "prefix": "wdelementSendKeys", |
| 199 | + "body": "browser.elementSendKeys(${1:elementId}, ${2:text}, ${3:value})", |
| 200 | + "description": "scrolls into view the form control element and then sends the provided keys to the element" |
| 201 | + }, |
| 202 | + "getPageSource": { |
| 203 | + "prefix": "wdgetPageSource", |
| 204 | + "body": "browser.getPageSource()", |
| 205 | + "description": "returns a string serialization of the DOM of the current browsing context" |
| 206 | + }, |
| 207 | + "executeScript": { |
| 208 | + "prefix": "wdexecuteScript", |
| 209 | + "body": "browser.executeScript(${1:script}, ${2:args})", |
| 210 | + "description": "executes a JavaScript function in the context of the current browsing context" |
| 211 | + }, |
| 212 | + "executeAsyncScript": { |
| 213 | + "prefix": "wdexecuteAsyncScript", |
| 214 | + "body": "browser.executeAsyncScript(${1:script}, ${2:args})", |
| 215 | + "description": "To execute as an anonymous function" |
| 216 | + }, |
| 217 | + "getAllCookies": { |
| 218 | + "prefix": "wdgetAllCookies", |
| 219 | + "body": "browser.getAllCookies()", |
| 220 | + "description": "returns all cookies associated with the address of the current browsing context" |
| 221 | + }, |
| 222 | + "addCookie": { |
| 223 | + "prefix": "wdaddCookie", |
| 224 | + "body": "browser.addCookie(${1:cookie})", |
| 225 | + "description": "adds a single cookie to the cookie store associated with the active document" |
| 226 | + }, |
| 227 | + "deleteAllCookies": { |
| 228 | + "prefix": "wddeleteAllCookies", |
| 229 | + "body": "browser.deleteAllCookies()", |
| 230 | + "description": "allows deletion of all cookies associated with the active document's address" |
| 231 | + }, |
| 232 | + "getNamedCookie": { |
| 233 | + "prefix": "wdgetNamedCookie", |
| 234 | + "body": "browser.getNamedCookie(${1:name})", |
| 235 | + "description": "returns the cookie with the requested name from the associated cookies" |
| 236 | + }, |
| 237 | + "deleteCookie": { |
| 238 | + "prefix": "wddeleteCookie", |
| 239 | + "body": "browser.deleteCookie(${1:name})", |
| 240 | + "description": "allows you to delete a single cookie by parameter name" |
| 241 | + }, |
| 242 | + "performActions": { |
| 243 | + "prefix": "wdperformActions", |
| 244 | + "body": "browser.performActions(${1:actions})", |
| 245 | + "description": "used to execute complex user actions" |
| 246 | + }, |
| 247 | + "releaseActions": { |
| 248 | + "prefix": "wdreleaseActions", |
| 249 | + "body": "browser.releaseActions()", |
| 250 | + "description": "used to release all the keys and pointer buttons that are currently depressed" |
| 251 | + }, |
| 252 | + "dismissAlert": { |
| 253 | + "prefix": "wddismissAlert", |
| 254 | + "body": "browser.dismissAlert()", |
| 255 | + "description": "dismisses a simple dialog if present, otherwise error" |
| 256 | + }, |
| 257 | + "acceptAlert": { |
| 258 | + "prefix": "wdacceptAlert", |
| 259 | + "body": "browser.acceptAlert()", |
| 260 | + "description": "accepts a simple dialog if present, otherwise error" |
| 261 | + }, |
| 262 | + "getAlertText": { |
| 263 | + "prefix": "wdgetAlertText", |
| 264 | + "body": "browser.getAlertText()", |
| 265 | + "description": "returns the message of the current user prompt" |
| 266 | + }, |
| 267 | + "sendAlertText": { |
| 268 | + "prefix": "wdsendAlertText", |
| 269 | + "body": "browser.sendAlertText(${1:text})", |
| 270 | + "description": "sets the text field of a window.prompt user prompt to the given value" |
| 271 | + }, |
| 272 | + "takeScreenshot": { |
| 273 | + "prefix": "wdtakeScreenshot", |
| 274 | + "body": "browser.takeScreenshot()", |
| 275 | + "description": "takes a screenshot of the top-level browsing context's viewport" |
| 276 | + }, |
| 277 | + "takeElementScreenshot": { |
| 278 | + "prefix": "wdtakeElementScreenshot", |
| 279 | + "body": "browser.takeElementScreenshot(${1:elementId}, ${2:scroll})", |
| 280 | + "description": "takes a screenshot of the visible region encompassed by the bounding rectangle of an element" |
| 281 | + }, |
2 | 282 | "$$": {
|
3 | 283 | "prefix": "wd$$",
|
4 | 284 | "body": "browser.$$(${1:selector})",
|
|
0 commit comments