@@ -50,6 +50,132 @@ Open the Command Palette and type `Insert Snippet`. Then, simply choose the dedi
5050
5151Below is attached a list of all supported snippets.
5252
53+ ### Playwright
54+
55+ | Snippet | Content |
56+ | -------------------------- | ------------------------------ |
57+ | ` pw-import ` | require('playwright') |
58+ | ` pw-import-chromium ` | require('playwright').chromium |
59+ | ` pw-import-firefox ` | require('playwright').firefox |
60+ | ` pw-import-webkit ` | require('playwright').webkit |
61+ | ` pw-import-devices ` | require('playwright').devices |
62+ | ` pw-connect-chromium ` | chromium.connect |
63+ | ` pw-launch-chromium ` | chromium.launch |
64+ | ` pw-launchServer-chromium ` | chromium.launchServer |
65+ | ` pw-connect-firefox ` | firefox.connect |
66+ | ` pw-launch-firefox ` | firefox.launch |
67+ | ` pw-launchServer-firefox ` | firefox.launchServer |
68+ | ` pw-connect-webkit ` | webkit.connect |
69+ | ` pw-launch-webkit ` | webkit.launch |
70+ | ` pw-launchServer-webkit ` | webkit.launchServer |
71+
72+ ### Browser
73+
74+ | Snippet | Content |
75+ | ---------------------------- | ------------------------------ |
76+ | ` pw-browser-close ` | browser.close |
77+ | ` pw-browser-contexts ` | browser.contexts |
78+ | ` pw-browser-isConnected ` | browser.isConnected |
79+ | ` pw-browser-newContext ` | browser.newContext |
80+ | ` pw-browser-newPage ` | browser.newPage |
81+ | ` pw-browser-version ` | browser.version |
82+ | ` pw-browser-on-disconnected ` | browser.on('disconnected',...) |
83+
84+ ### BrowserContext
85+
86+ | Snippet | Content |
87+ | ---------------------------- | ----------------------- |
88+ | ` pw-browserContext-close ` | context.close |
89+ | ` pw-browserContext-cookies ` | context.cookies |
90+ | ` pw-browserContext-newPage ` | context.newPage |
91+ | ` pw-browserContext-pages ` | context.pages |
92+ | ` pw-browserContext-route ` | context.route |
93+ | ` pw-browserContext-unroute ` | context.unroute |
94+ | ` pw-browserContext-on-close ` | context.on('close',...) |
95+ | ` pw-browserContext-on-page ` | context.on('page',...) |
96+
97+ ### BrowserServer
98+
99+ | Snippet | Content |
100+ | --------------------------- | ----------------------------- |
101+ | ` pw-browserServer-close ` | browserServer.close |
102+ | ` pw-browserServer-kill ` | browserServer.kill |
103+ | ` pw-browserServer-on-close ` | browserServer.on('close',...) |
104+
105+ ### Page
106+
107+ | Snippet | Content |
108+ | ----------------------------- | ------------------------------- |
109+ | ` pw-page-$ ` | page.\$ |
110+ | ` pw-page-$$ ` | page.\$\$ |
111+ | ` pw-page-$$eval ` | page.\$\$ eval |
112+ | ` pw-page-$eval ` | page.\$ eval |
113+ | ` pw-page-bringToFront ` | page.bringToFront |
114+ | ` pw-page-click ` | page.click |
115+ | ` pw-page-close ` | page.close |
116+ | ` pw-page-content ` | page.content |
117+ | ` pw-page-dblclick ` | page.dblclick |
118+ | ` pw-page-emulateMedia ` | page.emulateMedia |
119+ | ` pw-page-evaluate ` | page.evaluate |
120+ | ` pw-page-fill ` | page.fill |
121+ | ` pw-page-focus ` | page.focus |
122+ | ` pw-page-goBack ` | page.goBack |
123+ | ` pw-page-goForward ` | page.goForward |
124+ | ` pw-page-goto ` | page.goto |
125+ | ` pw-page-hover ` | page.hover |
126+ | ` pw-page-keyboard-down ` | page.keyboard.down |
127+ | ` pw-page-keyboard-insertText ` | page.keyboard.insertText |
128+ | ` pw-page-keyboard-press ` | page.keyboard.press |
129+ | ` pw-page-keyboard-type ` | page.keyboard.type |
130+ | ` pw-page-keyboard-up ` | page.keyboard.up |
131+ | ` pw-page-mouse-click ` | page.mouse.click |
132+ | ` pw-page-mouse-dblclick ` | page.mouse.dblclick |
133+ | ` pw-page-mouse-down ` | page.mouse.down |
134+ | ` pw-page-mouse-move ` | page.mouse.move |
135+ | ` pw-page-mouse-up ` | page.mouse.up |
136+ | ` pw-page-pdf ` | page.pdf |
137+ | ` pw-page-press ` | page.press |
138+ | ` pw-page-reload ` | page.reload |
139+ | ` pw-page-route ` | page.route |
140+ | ` pw-page-screenshot ` | page.screenshot |
141+ | ` pw-page-title ` | page.title |
142+ | ` pw-page-type ` | page.type |
143+ | ` pw-page-unroute ` | page.unroute |
144+ | ` pw-page-url ` | page.url |
145+ | ` pw-page-waitForEvent ` | page.waitForEvent |
146+ | ` pw-page-waitForFunction ` | page.waitForFunction |
147+ | ` pw-page-waitForLoadState ` | page.waitForLoadState |
148+ | ` pw-page-waitForNavigation ` | page.waitForNavigation |
149+ | ` pw-page-waitForRequest ` | page.waitForRequest |
150+ | ` pw-page-waitForResponse ` | page.waitForResponse |
151+ | ` pw-page-waitForSelector ` | page.waitForSelector |
152+ | ` pw-page-waitForTimeout ` | page.waitForTimeout |
153+ | ` pw-page-on-close ` | page.on('close',...) |
154+ | ` pw-page-on-console ` | page.on('console',...) |
155+ | ` pw-page-on-crash ` | page.on('crash',...) |
156+ | ` pw-page-on-dialog ` | page.on('dialog',...) |
157+ | ` pw-page-on-domcontentloaded ` | page.on('domcontentloaded',...) |
158+ | ` pw-page-on-frameattached ` | page.on('frameattached',...) |
159+ | ` pw-page-on-framedetached ` | page.on('framedetached',...) |
160+ | ` pw-page-on-framenavigated ` | page.on('framenavigated',...) |
161+ | ` pw-page-on-load ` | page.on('load',...) |
162+ | ` pw-page-on-pageerror ` | page.on('pageerror',...) |
163+ | ` pw-page-on-popup ` | page.on('popup',...) |
164+ | ` pw-page-on-request ` | page.on('request',...) |
165+ | ` pw-page-on-requestfailed ` | page.on('requestfailed',...) |
166+ | ` pw-page-on-requestfinished ` | page.on('requestfinished',...) |
167+ | ` pw-page-on-response ` | page.on('response',...) |
168+ | ` pw-page-on-worker ` | page.on('worker',...) |
169+
170+ ### General Examples
171+
172+ | Snippet | Content |
173+ | ------------------------- | ---------------------------------------------------------------------------------- |
174+ | ` pw-examples-basic ` | Creates a basic usage example of a page |
175+ | ` pw-examples-dragAndDrop ` | Creates an example that drags the mouse from a point and drops it to another point |
176+
177+ <br >
178+
53179## 💁🏻 Contributing
54180
55181This is an open source project. Any contribution would be greatly appreciated!
0 commit comments