|
394 | 394 | "body": "title(${1:callback})", |
395 | 395 | "description": "Get the current page title" |
396 | 396 | }, |
| 397 | + "closeWindow": { |
| 398 | + "prefix": "nwcloseWindow", |
| 399 | + "body": "closeWindow(${1:optionalCallback})", |
| 400 | + "description": "Close the current window" |
| 401 | + }, |
| 402 | + "resizeWindow": { |
| 403 | + "prefix": "nwresizeWindow", |
| 404 | + "body": "resizeWindow(${1:width}, ${2:height}, ${3:optionalCallback})", |
| 405 | + "description": "Resizes the current window" |
| 406 | + }, |
| 407 | + "maximizeWindow": { |
| 408 | + "prefix": "nwmaximizeWindow", |
| 409 | + "body": "maximizeWindow(${1:optionalCallback})", |
| 410 | + "description": "Maximizes the current window" |
| 411 | + }, |
| 412 | + "switchWindow": { |
| 413 | + "prefix": "nwswitchWindow", |
| 414 | + "body": "switchWindow(${1:handleOrName}, ${2:optionalCallback})", |
| 415 | + "description": "Change focus to another window" |
| 416 | + }, |
| 417 | + "setWindowPosition": { |
| 418 | + "prefix": "nwsetWindowPosition", |
| 419 | + "body": "setWindowPosition(${1:offsetX}, ${2:offsetY}, ${3:optionalCallback})", |
| 420 | + "description": "Sets the current window position" |
| 421 | + }, |
| 422 | + "window": { |
| 423 | + "prefix": "nwwindow", |
| 424 | + "body": "window(${1:method}, ${2:handleOrName}, ${3:optionalCallback})", |
| 425 | + "description": "Change focus to another window or close the current window" |
| 426 | + }, |
| 427 | + "windowHandle": { |
| 428 | + "prefix": "nwwindowHandle", |
| 429 | + "body": "windowHandle(${1:callback})", |
| 430 | + "description": "Retrieve the current window handle" |
| 431 | + }, |
| 432 | + "windowHandles": { |
| 433 | + "prefix": "nwwindowHandles", |
| 434 | + "body": "windowHandles(${1:callback})", |
| 435 | + "description": "Retrieve the list of all window handles available to the session" |
| 436 | + }, |
| 437 | + "windowMaximize": { |
| 438 | + "prefix": "nwwindowMaximize", |
| 439 | + "body": "windowMaximize(${1:optionalHandleOrName}, ${2:optionalCallback})", |
| 440 | + "description": "Increases the window to the maximum available size without going full-screen" |
| 441 | + }, |
| 442 | + "windowPosition": { |
| 443 | + "prefix": "nwwindowPosition", |
| 444 | + "body": "windowPosition(${1:windowHandle}, ${2:offsetX}, ${3:offsetY}, ${3:callback})", |
| 445 | + "description": "Change or get the position of the specified window" |
| 446 | + }, |
| 447 | + "windowSize": { |
| 448 | + "prefix": "nwwindowSize", |
| 449 | + "body": "windowSize(${1:windowHandle}, ${2:width}, ${3:height}, ${4:optionalCallback})", |
| 450 | + "description": "Change or get the size of the specified window" |
| 451 | + }, |
| 452 | + "frame": { |
| 453 | + "prefix": "nwframe", |
| 454 | + "body": "frame(${1:optionalFrameID}, ${2:optionalCallback})", |
| 455 | + "description": "Change focus to another frame on the page" |
| 456 | + }, |
| 457 | + "frameParent": { |
| 458 | + "prefix": "nwframeParent", |
| 459 | + "body": "frameParent(${1:optionalCallback})", |
| 460 | + "description": "Change focus to the parent context" |
| 461 | + }, |
397 | 462 | "pause": { |
398 | 463 | "prefix": "nwpause", |
399 | 464 | "body": "pause(${1:2111ms}, ${2:optionalCallback})", |
|
414 | 479 | "body": "useXpath(${1:optionalCallback})", |
415 | 480 | "description": "useXpath(optionalCallback)" |
416 | 481 | }, |
417 | | - "switchWindow": { |
418 | | - "prefix": "nwswitchWindow", |
419 | | - "body": "switchWindow(${1:handleOrName}, ${2:optionalCallback})", |
420 | | - "description": "switchWindow(handleOrName, optionalCallback)" |
421 | | - }, |
422 | | - "resizeWindow": { |
423 | | - "prefix": "nwresizeWindow", |
424 | | - "body": "resizeWindow(${1:width}, ${2:height}, ${3:optionalCallback})", |
425 | | - "description": "resizeWindow(width, height, optionalCallback)" |
426 | | - }, |
427 | | - "setWindowPosition": { |
428 | | - "prefix": "nwsetWindowPosition", |
429 | | - "body": "setWindowPosition(${1:offsetX}, ${2:offsetY}, ${3:optionalCallback})", |
430 | | - "description": "setWindowPosition(offsetX, offsetY, optionalCallback)" |
431 | | - }, |
432 | | - "maximizeWindow": { |
433 | | - "prefix": "nwmaximizeWindow", |
434 | | - "body": "maximizeWindow(${1:optionalCallback})", |
435 | | - "description": "maximizeWindow(optionalCallback)" |
436 | | - }, |
437 | 482 | "saveScreenshot": { |
438 | 483 | "prefix": "nwsaveScreenshot", |
439 | 484 | "body": "saveScreenshot(${1:fileName}, ${2:optionalCallback})", |
440 | 485 | "description": "saveScreenshot(fileName, optionalCallback)" |
441 | 486 | }, |
442 | | - "closeWindow": { |
443 | | - "prefix": "nwcloseWindow", |
444 | | - "body": "closeWindow(${1:optionalCallback})", |
445 | | - "description": "closeWindow(optionalCallback)" |
446 | | - }, |
447 | 487 | "getCookies": { |
448 | 488 | "prefix": "nwgetCookies", |
449 | 489 | "body": "getCookies(${1:callback})", |
|
0 commit comments