|
127 | 127 | "getAttribute": { |
128 | 128 | "prefix": "nwgetAttribute", |
129 | 129 | "body": "getAttribute(${1:selector}, ${2:attribute}, ${3:callback})", |
130 | | - "description": "getAttribute(selector, attribute, callback)" |
| 130 | + "description": "Retrieve the value of an attribute for a given DOM element" |
131 | 131 | }, |
132 | 132 | "getCssProperty": { |
133 | 133 | "prefix": "nwgetCssProperty", |
134 | 134 | "body": "getCssProperty(${1:selector}, ${2:cssProperty}, ${3:callback})", |
135 | | - "description": "getCssProperty(selector, cssProperty, callback)" |
| 135 | + "description": "Retrieve the value of a css property for a given DOM element" |
136 | 136 | }, |
137 | 137 | "getElementSize": { |
138 | 138 | "prefix": "nwgetElementSize", |
139 | 139 | "body": "getElementSize(${1:selector}, ${2:callback})", |
140 | | - "description": "getElementSize(selector, callback)" |
| 140 | + "description": "Determine an element's size in pixels" |
141 | 141 | }, |
142 | 142 | "getLocation": { |
143 | 143 | "prefix": "nwgetLocation", |
|
152 | 152 | "getTagName": { |
153 | 153 | "prefix": "nwgetTagName", |
154 | 154 | "body": "getTagName(${1:selector}, ${2:callback})", |
155 | | - "description": "getTagName(selector, callback)" |
| 155 | + "description": "Query for an element's tag name" |
156 | 156 | }, |
157 | 157 | "getText": { |
158 | 158 | "prefix": "nwgetText", |
159 | | - "body": "getText(${1:selector}, ${2:callback})", |
160 | | - "description": "getText(selector, callback)" |
| 159 | + "body": "getText(${1:optionalUsing}, ${2:selector}, ${3:callback})", |
| 160 | + "description": "Returns the visible text for the element" |
161 | 161 | }, |
162 | 162 | "getValue": { |
163 | 163 | "prefix": "nwgetValue", |
164 | 164 | "body": "getValue(${1:selector}, ${2:callback})", |
165 | | - "description": "getValue(selector, callback)" |
| 165 | + "description": "Returns a form element current value" |
166 | 166 | }, |
167 | 167 | "isVisible": { |
168 | 168 | "prefix": "nwisVisible", |
169 | 169 | "body": "isVisible(${1:selector}, ${2:callback})", |
170 | | - "description": "isVisible(selector, callback)" |
| 170 | + "description": "Determine if an element is currently displayed" |
| 171 | + }, |
| 172 | + "elementActive": { |
| 173 | + "prefix": "nwelementActive", |
| 174 | + "body": "elementActive(${1:callback})", |
| 175 | + "description": "Get the element on the page that currently has focus" |
171 | 176 | }, |
172 | 177 | "moveToElement": { |
173 | 178 | "prefix": "nwmoveToElement", |
|
0 commit comments