playwright-ui5 0.0.1 → 1.0.0

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.
Files changed (3) hide show
  1. package/README.md +14 -3
  2. package/dist/browser/main.js +611 -5458
  3. package/package.json +13 -4
package/README.md CHANGED
@@ -21,6 +21,17 @@ selectors.register('ui5', ui5)
21
21
  })()
22
22
  ```
23
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
24
+ ## syntax
25
+
26
+ this selector engine uses css selector-like syntax. the main difference is that `.` is not used for class names, rather they are treated as part of the type name (ie. `sap.m.Button`)
27
+
28
+ <!-- https://github.com/prettier/prettier/issues/11410 -->
29
+ <!-- prettier-ignore -->
30
+ | feature | examples | suported | notes |
31
+ | -------------- | ------------------- | -------- | ----- |
32
+ | type selectors | `sap.m.Button`, `*` | ✔ |
33
+ | class selectors | n/a | n/a |as mentioned above, `.` is treated as part of the control type
34
+ | attribute selectors | `[text]`, `[text='foo']`,`[text*='foo']` | ✔ | some equality mods are useless for ui5 (eg. `|=`) but are supported for the sake of completeness |
35
+ | id selectors | `sap.m.Button#foo` | ✔ |you should not use id selectors if the id is generated (eg. `__button1`) as they can change often
36
+ | nesting | `sap.m.Table sap.m.Button`,`sap.m.Table > sap.m.Button` | ❌ |use playwright selector nesting instead (`ui5=sap.m.Table >> ui5=sap.m.Button`)
37
+ | pseudo-classes | `sap.m.Table:has(sap.m.Button)` | ❌ |