playwright-ruby-client 1.15.1 → 1.16.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/documentation/docs/api/locator.md +18 -0
- data/documentation/docs/include/api_coverage.md +1 -0
- data/documentation/package.json +2 -2
- data/documentation/yarn.lock +1430 -1486
- data/lib/playwright/channel.rb +1 -1
- data/lib/playwright/channel_owners/frame.rb +3 -1
- data/lib/playwright/locator_impl.rb +4 -0
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright_api/fetch_request.rb +3 -0
- data/lib/playwright_api/locator.rb +13 -0
- data/lib/playwright_api/worker.rb +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac716fcd59a6c1b520004d0c5797dadaf77d8a5ec78dd60903cd424a2d9569ca
|
4
|
+
data.tar.gz: 6ec8fb266d6ce38229ee17e68dec62e5ba42edb09ddd59814242fe5dd757c157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c3fc4e0689b164b90791c9c288895966de3c42275df2c46f89fcd19999df2d830dd9fa081532d106a178ae17cd18807240ab3fe3c07f287f9906777b3bb0c72
|
7
|
+
data.tar.gz: cec2ee542633b9b7c803de01fc3b700a7b78eeac15e156dca97d99b62f9142c9f749e90a006b44bf9d7108ffeed63329b64003da53603fd02fcb75374f6a33e1
|
@@ -677,3 +677,21 @@ If the element is detached from the DOM at any moment during the action, this me
|
|
677
677
|
|
678
678
|
When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`. Passing
|
679
679
|
zero timeout disables this.
|
680
|
+
|
681
|
+
## wait_for
|
682
|
+
|
683
|
+
```
|
684
|
+
def wait_for(state: nil, timeout: nil)
|
685
|
+
```
|
686
|
+
|
687
|
+
Returns when element specified by locator satisfies the `state` option.
|
688
|
+
|
689
|
+
If target element already satisfies the condition, the method returns immediately. Otherwise, waits for up to `timeout`
|
690
|
+
milliseconds until the condition is met.
|
691
|
+
|
692
|
+
```ruby
|
693
|
+
order_sent = page.locator("#order-sent")
|
694
|
+
order_sent.wait_for
|
695
|
+
```
|
696
|
+
|
697
|
+
|
data/documentation/package.json
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
"write-heading-ids": "docusaurus write-heading-ids"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@docusaurus/core": "^2.0.0-beta.
|
18
|
-
"@docusaurus/preset-classic": "^2.0.0-beta.
|
17
|
+
"@docusaurus/core": "^2.0.0-beta.6",
|
18
|
+
"@docusaurus/preset-classic": "^2.0.0-beta.6",
|
19
19
|
"@mdx-js/react": "^1.6.21",
|
20
20
|
"@svgr/webpack": "^5.5.0",
|
21
21
|
"clsx": "^1.1.1",
|