automation_model 1.0.747-dev → 1.0.748-dev
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 +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ This API is built on top of Playwright to control browsers. The most common comm
|
|
|
11
11
|
- **selectors** - An object that can contain the name of the element as well as multiple selectors (CSS, ARIA, etc.) used to locate the element.
|
|
12
12
|
- **world** - Used as part of `cucumber-js`.
|
|
13
13
|
- **\_params** - An object that includes the original function parameters (used in dynamic selectors).
|
|
14
|
-
- **options** -
|
|
14
|
+
- **options** - All actions playwright options are supported: "button", "clickCount", "delay", "modifiers", "force", "position", "trial", "timeout".
|
|
15
15
|
- **climb** - After finding the element using the selectors, will climb the DOM.
|
|
16
16
|
|
|
17
17
|
Unless stated otherwise, the APIs will return an information object and will throw an error in case of failure.
|
|
@@ -128,3 +128,5 @@ async function login_with_user_and_password(_username, _password) {
|
|
|
128
128
|
await context.web.click(elements["button_login"], _params, { timeout: 120000 }, this);
|
|
129
129
|
}
|
|
130
130
|
```
|
|
131
|
+
|
|
132
|
+
To use the playwright page object directly, use: context.web.page
|