@@ -16,6 +16,12 @@ The following is the key for what the statuses mean.
1616
1717The 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