|
116 | 116 | }, |
117 | 117 | "click": { |
118 | 118 | "prefix": "nwclick", |
119 | | - "body": "click(${1:selector}, ${2:optionalCallback})", |
120 | | - "description": "click(selector, optionalCallback)" |
| 119 | + "body": "click(${1:optionalUsing}, ${2:selector}, ${3:optionalCallback})", |
| 120 | + "description": "Simulates a click event on the given DOM element" |
121 | 121 | }, |
122 | 122 | "clearValue": { |
123 | 123 | "prefix": "nwclearValue", |
124 | 124 | "body": "clearValue(${1:selector}, ${2:optionalCallback})", |
125 | | - "description": "clearValue(selector, optionalCallback)" |
| 125 | + "description": "Clear a textarea or a text input element's value" |
126 | 126 | }, |
127 | 127 | "getAttribute": { |
128 | 128 | "prefix": "nwgetAttribute", |
|
172 | 172 | "moveToElement": { |
173 | 173 | "prefix": "nwmoveToElement", |
174 | 174 | "body": "moveToElement(${1:selector}, ${2:xoffset}, ${3:yoffset}, ${4:optionalCallback})", |
175 | | - "description": "moveToElement(selector, xoffset, yoffset, optionalCallback)" |
| 175 | + "description": "Move the mouse by an offset of the specified element" |
176 | 176 | }, |
177 | 177 | "setValue": { |
178 | 178 | "prefix": "nwsetValue", |
179 | 179 | "body": "setValue(${1:selector}, ${2:inputValue}, ${3:optionalCallback})", |
180 | | - "description": "setValue(selector, inputValue, optionalCallback)" |
| 180 | + "description": "Sends some text to an element" |
181 | 181 | }, |
182 | 182 | "submitForm": { |
183 | 183 | "prefix": "nwsubmitForm", |
184 | 184 | "body": "submitForm(${1:selector}, ${2:optionalCallback})", |
185 | | - "description": "submitForm(selector, optionalCallback)" |
| 185 | + "description": "Submit a FORM element" |
| 186 | + }, |
| 187 | + "keys": { |
| 188 | + "prefix": "nwkeys", |
| 189 | + "body": "submitForm(${1:keysToSend}, ${2:optionalCallback})", |
| 190 | + "description": "Send a sequence of key strokes to the active element" |
186 | 191 | }, |
187 | 192 | "attributeContains": { |
188 | 193 | "prefix": "nwattributeContains", |
|
0 commit comments