* Navigate to the command palette via menus then execute a command by typing * it then clicking the match from the results.
(command: string)
| 435 | * it then clicking the match from the results. |
| 436 | */ |
| 437 | async executeCommandViaMenus(command: string) { |
| 438 | await this.navigateMenus(["View", "Command Palette..."]) |
| 439 | |
| 440 | await this.page.keyboard.type(command) |
| 441 | |
| 442 | await this.page.hover(`text=${command}`) |
| 443 | await this.page.click(`text=${command}`) |
| 444 | } |
| 445 | |
| 446 | /** |
| 447 | * Navigate through the items in the selector. `open` is a function that will |