Skip to content

Commit 0dce89c

Browse files
committed
Add admonition for feedback on missing APIs
1 parent 7f2eff4 commit 0dce89c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

β€Ždocs/sources/k6/next/using-k6-browser/playwright-apis-in-k6.mdβ€Ž

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ The following is the key for what the statuses mean.
1616

1717
The following table shows which Playwright APIs are implemented in k6. We aim to match Playwright's API behavior and signature exactly, but some differences may exist. For more details, refer to the individual API documentation page.
1818

19+
{{< admonition type="note" >}}
20+
21+
If k6 is missing an API from Playwright that you need for your test, please let us know by opening a [github issue](https://github.com/grafana/k6/issues).
22+
23+
{{< /admonition >}}
24+
1925
| Object | Method | Status | Alternate |
2026
| ------ | ------ | ------ | --------- |
2127
| Browser | addListener | πŸŸ₯ | None |
@@ -111,7 +117,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
111117
| ElementHandle | [focus](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/focus/) | 🟩 | - |
112118
| ElementHandle | [getAttribute](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/getattribute/) | 🟩 | - |
113119
| ElementHandle | [getProperties](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/getproperties/) | 🟩 | - |
114-
| ElementHandle | getProperty | πŸŸ₯ | [ElementHandle.getProperties](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/getproperties/) |
120+
| ElementHandle | getProperty | πŸŸ₯ | [elementHandle.getProperties](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/getproperties/) |
115121
| ElementHandle | [hover](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/hover/) | 🟩 | - |
116122
| ElementHandle | [innerHTML](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/innerhtml/) | 🟩 | - |
117123
| ElementHandle | [innerText](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/innertext/) | 🟩 | - |
@@ -159,7 +165,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
159165
| Frame | [fill](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/fill/) | 🟩 | - |
160166
| Frame | [focus](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/focus/) | 🟩 | - |
161167
| Frame | [frameElement](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/frameelement/) | 🟩 | - |
162-
| Frame | frameLocator | πŸŸ₯ | [locator('').contentFrame()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
168+
| Frame | frameLocator | πŸŸ₯ | [locator.contentFrame](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
163169
| Frame | [getAttribute](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/getattribute/) | 🟩 | - |
164170
| Frame | [getByAltText](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/getbyalttext/) | 🟩 | - |
165171
| Frame | [getByLabel](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/getbylabel/) | 🟩 | - |
@@ -202,7 +208,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
202208
| Frame | [waitForTimeout](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitfortimeout/) | 🟩 | - |
203209
| Frame | [waitForURL](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame/waitforurl/) | 🟩 | - |
204210
| FrameLocator | first | πŸŸ₯ | None |
205-
| FrameLocator | frameLocator | πŸŸ₯ | [locator('').contentFrame()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
211+
| FrameLocator | frameLocator | πŸŸ₯ | [locator.contentFrame](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
206212
| FrameLocator | [getByAltText](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/framelocator/getbyalttext/) | 🟩 | - |
207213
| FrameLocator | [getByLabel](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/framelocator/getbylabel/) | 🟩 | - |
208214
| FrameLocator | [getByPlaceholder](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/framelocator/getbyplaceholder/) | 🟩 | - |
@@ -219,7 +225,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
219225
| JSHandle | [evaluate](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/evaluate/) | 🟩 | - |
220226
| JSHandle | [evaluateHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/evaluatehandle/) | 🟩 | - |
221227
| JSHandle | [getProperties](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/getproperties/) | 🟩 | - |
222-
| JSHandle | getProperty | πŸŸ₯ | [JSHandle.getProperties](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/getproperties/) |
228+
| JSHandle | getProperty | πŸŸ₯ | [jsHandle.getProperties](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/getproperties/) |
223229
| JSHandle | [jsonValue](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/jshandle/jsonvalue/) | 🟩 | - |
224230
| Keyboard | [down](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/keyboard/down/) | 🟩 | - |
225231
| Keyboard | [insertText](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/keyboard/inserttext/) | 🟩 | - |
@@ -250,7 +256,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
250256
| Locator | [filter](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/filter/) | 🟩 | - |
251257
| Locator | [first](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/first/) | 🟩 | - |
252258
| Locator | [focus](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/focus/) | 🟩 | - |
253-
| Locator | frameLocator | πŸŸ₯ | [locator('').contentFrame()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
259+
| Locator | frameLocator | πŸŸ₯ | [locator.contentFrame](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
254260
| Locator | [getAttribute](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/getattribute/) | 🟩 | - |
255261
| Locator | [getByAltText](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/getbyalttext/) | 🟩 | - |
256262
| Locator | [getByLabel](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/getbylabel/) | 🟩 | - |
@@ -321,7 +327,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
321327
| Page | [fill](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/fill/) | 🟩 | - |
322328
| Page | [focus](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/focus/) | 🟩 | - |
323329
| Page | frame | πŸŸ₯ | None |
324-
| Page | frameLocator | πŸŸ₯ | [locator('').contentFrame()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
330+
| Page | frameLocator | πŸŸ₯ | [locator.contentFrame](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/contentframe/) |
325331
| Page | [frames](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/frames/) | 🟩 | - |
326332
| Page | [getAttribute](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getattribute/) | 🟩 | - |
327333
| Page | [getByAltText](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbyalttext/) | 🟩 | - |
@@ -411,7 +417,7 @@ The following table shows which Playwright APIs are implemented in k6. We aim to
411417
| Request | [response](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/request/response/) | 🟩 | - |
412418
| Request | serviceWorker | πŸŸ₯ | None |
413419
| Request | [size](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/request/size/) | 🟧 | - |
414-
| Request | sizes | πŸŸ₯ | [request.size()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/request/size/) |
420+
| Request | sizes | πŸŸ₯ | [request.size](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/request/size/) |
415421
| Request | [timing](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/request/timing/) | 🟩 | - |
416422
| Request | [url](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/request/url/) | 🟩 | - |
417423
| Response | [allHeaders](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/response/allheaders/) | 🟩 | - |

0 commit comments

Comments
Β (0)