playwright-ui5 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # playwright ui5
2
+
3
+ a playwright [custom selector engine](https://playwright.dev/docs/extensibility#custom-selector-engines) for [sapui5](https://ui5.sap.com/)
4
+
5
+ ## installation
6
+
7
+ ```bash
8
+ npm install playwright-ui5
9
+ ```
10
+
11
+ ## usage
12
+
13
+ ```ts
14
+ import { selectors } from 'playwright'
15
+ import ui5 from 'playwright-ui5'
16
+
17
+ selectors.register('ui5', ui5)
18
+ ;(async () => {
19
+ await page.goto('https://ui5.sap.com/')
20
+ await page.click("ui5=sap.m.Button[text='Get Started with UI5']")
21
+ })()
22
+ ```
23
+
24
+ ## disclaimer
25
+
26
+ the selector parser currently sucks because it just uses regex. so although the syntax resembles css selectors, most css selector functionality is not yet supported