playwright-ruby-client 1.40.0 → 1.41.0
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/browser_context.md +9 -0
- data/documentation/docs/api/element_handle.md +2 -1
- data/documentation/docs/api/locator.md +1 -0
- data/documentation/docs/api/locator_assertions.md +5 -5
- data/documentation/docs/api/page.md +10 -0
- data/documentation/docs/api/tracing.md +2 -2
- data/documentation/docs/include/api_coverage.md +2 -0
- data/lib/playwright/channel_owners/browser_context.rb +5 -0
- data/lib/playwright/channel_owners/element_handle.rb +2 -0
- data/lib/playwright/channel_owners/page.rb +7 -0
- data/lib/playwright/locator_impl.rb +2 -0
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright_api/browser_context.rb +6 -0
- data/lib/playwright_api/element_handle.rb +3 -2
- data/lib/playwright_api/locator.rb +2 -1
- data/lib/playwright_api/locator_assertions.rb +6 -6
- data/lib/playwright_api/page.rb +14 -7
- data/lib/playwright_api/tracing.rb +2 -2
- data/playwright.gemspec +3 -4
- data/sig/playwright.rbs +6 -4
- metadata +11 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d56d51c5d7599c6d3966b1b8d7cd460971460900a0000feb172d6babcd5905d9
|
4
|
+
data.tar.gz: 18de89189e726cd187c7fb542c20d673a37f93cdae9e6b5cba60ffee95c610b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30acf5bf85be0cf16d94e20ce57a1b94567388188ee07ace9a46f3a92000c858316505f211738ed1349c753c229bc3011bbe262363a53cb8756df3c7ff0fd2e0
|
7
|
+
data.tar.gz: 780c57175041d1bd30ea366a1ea560c43d6d15c740ce925489a3ca904a9811d44efc3428124d03f0366e215cf9b827889814f15b1672d56214d02b3604436420
|
@@ -441,6 +441,15 @@ def storage_state(path: nil)
|
|
441
441
|
|
442
442
|
Returns storage state for this browser context, contains current cookies and local storage snapshot.
|
443
443
|
|
444
|
+
## unroute_all
|
445
|
+
|
446
|
+
```
|
447
|
+
def unroute_all(behavior: nil)
|
448
|
+
```
|
449
|
+
|
450
|
+
|
451
|
+
Removes all routes created with [BrowserContext#route](./browser_context#route) and [BrowserContext#route_from_har](./browser_context#route_from_har).
|
452
|
+
|
444
453
|
## unroute
|
445
454
|
|
446
455
|
```
|
@@ -458,6 +458,7 @@ def screenshot(
|
|
458
458
|
path: nil,
|
459
459
|
quality: nil,
|
460
460
|
scale: nil,
|
461
|
+
style: nil,
|
461
462
|
timeout: nil,
|
462
463
|
type: nil)
|
463
464
|
```
|
@@ -654,7 +655,7 @@ Returns when the element satisfies the `state`.
|
|
654
655
|
Depending on the `state` parameter, this method waits for one of the [actionability](https://playwright.dev/python/docs/actionability) checks
|
655
656
|
to pass. This method throws when the element is detached while waiting, unless waiting for the `"hidden"` state.
|
656
657
|
- `"visible"` Wait until the element is [visible](https://playwright.dev/python/docs/actionability#visible).
|
657
|
-
- `"hidden"` Wait until the element is [not visible](https://playwright.dev/python/docs/actionability#visible) or
|
658
|
+
- `"hidden"` Wait until the element is [not visible](https://playwright.dev/python/docs/actionability#visible) or not attached. Note that waiting for hidden does not throw when the element detaches.
|
658
659
|
- `"stable"` Wait until the element is both [visible](https://playwright.dev/python/docs/actionability#visible) and [stable](https://playwright.dev/python/docs/actionability#stable).
|
659
660
|
- `"enabled"` Wait until the element is [enabled](https://playwright.dev/python/docs/actionability#enabled).
|
660
661
|
- `"disabled"` Wait until the element is [not enabled](https://playwright.dev/python/docs/actionability#enabled).
|
@@ -128,7 +128,7 @@ The opposite of [LocatorAssertions#to_contain_text](./locator_assertions#to_cont
|
|
128
128
|
## not_to_have_attribute
|
129
129
|
|
130
130
|
```ruby
|
131
|
-
expect(locator).not_to have_attribute(name, value, timeout: nil)
|
131
|
+
expect(locator).not_to have_attribute(name, value, ignoreCase: nil, timeout: nil)
|
132
132
|
```
|
133
133
|
|
134
134
|
|
@@ -213,7 +213,7 @@ expect(locator).to be_attached(attached: nil, timeout: nil)
|
|
213
213
|
```
|
214
214
|
|
215
215
|
|
216
|
-
Ensures that [Locator](./locator) points to an [
|
216
|
+
Ensures that [Locator](./locator) points to an element that is [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot.
|
217
217
|
|
218
218
|
**Usage**
|
219
219
|
|
@@ -372,7 +372,7 @@ expect(locator).to be_visible(timeout: nil, visible: nil)
|
|
372
372
|
```
|
373
373
|
|
374
374
|
|
375
|
-
Ensures that [Locator](./locator) points to an
|
375
|
+
Ensures that [Locator](./locator) points to an attached and [visible](https://playwright.dev/python/docs/actionability#visible) DOM node.
|
376
376
|
|
377
377
|
To check that at least one element from the list is visible, use [Locator#first](./locator#first).
|
378
378
|
|
@@ -398,7 +398,7 @@ expect(locator).to contain_text(expected, ignoreCase: nil, timeout: nil, useInne
|
|
398
398
|
```
|
399
399
|
|
400
400
|
|
401
|
-
Ensures the [Locator](./locator) points to an element that contains the given text. You can use regular expressions for the value as well.
|
401
|
+
Ensures the [Locator](./locator) points to an element that contains the given text. All nested elements will be considered when computing the text content of the element. You can use regular expressions for the value as well.
|
402
402
|
|
403
403
|
**Details**
|
404
404
|
|
@@ -562,7 +562,7 @@ expect(locator).to have_text(expected, ignoreCase: nil, timeout: nil, useInnerTe
|
|
562
562
|
```
|
563
563
|
|
564
564
|
|
565
|
-
Ensures the [Locator](./locator) points to an element with the given text. You can use regular expressions for the value as well.
|
565
|
+
Ensures the [Locator](./locator) points to an element with the given text. All nested elements will be considered when computing the text content of the element. You can use regular expressions for the value as well.
|
566
566
|
|
567
567
|
**Details**
|
568
568
|
|
@@ -1294,6 +1294,7 @@ def screenshot(
|
|
1294
1294
|
path: nil,
|
1295
1295
|
quality: nil,
|
1296
1296
|
scale: nil,
|
1297
|
+
style: nil,
|
1297
1298
|
timeout: nil,
|
1298
1299
|
type: nil)
|
1299
1300
|
```
|
@@ -1548,6 +1549,15 @@ This method unchecks an element matching `selector` by performing the following
|
|
1548
1549
|
When all steps combined have not finished during the specified `timeout`, this method throws a
|
1549
1550
|
`TimeoutError`. Passing zero timeout disables this.
|
1550
1551
|
|
1552
|
+
## unroute_all
|
1553
|
+
|
1554
|
+
```
|
1555
|
+
def unroute_all(behavior: nil)
|
1556
|
+
```
|
1557
|
+
|
1558
|
+
|
1559
|
+
Removes all routes created with [Page#route](./page#route) and [Page#route_from_har](./page#route_from_har).
|
1560
|
+
|
1551
1561
|
## unroute
|
1552
1562
|
|
1553
1563
|
```
|
@@ -35,7 +35,7 @@ Start tracing.
|
|
35
35
|
**Usage**
|
36
36
|
|
37
37
|
```ruby
|
38
|
-
context.tracing.start(
|
38
|
+
context.tracing.start(screenshots: true, snapshots: true)
|
39
39
|
page = context.new_page
|
40
40
|
page.goto('https://playwright.dev')
|
41
41
|
context.tracing.stop(path: 'trace.zip')
|
@@ -53,7 +53,7 @@ Start a new trace chunk. If you'd like to record multiple traces on the same [Br
|
|
53
53
|
**Usage**
|
54
54
|
|
55
55
|
```ruby
|
56
|
-
context.tracing.start(
|
56
|
+
context.tracing.start(screenshots: true, snapshots: true)
|
57
57
|
page = context.new_page
|
58
58
|
page.goto("https://playwright.dev")
|
59
59
|
|
@@ -315,6 +315,7 @@
|
|
315
315
|
* title
|
316
316
|
* type
|
317
317
|
* uncheck
|
318
|
+
* unroute_all
|
318
319
|
* unroute
|
319
320
|
* url
|
320
321
|
* video
|
@@ -368,6 +369,7 @@
|
|
368
369
|
* set_geolocation
|
369
370
|
* set_offline
|
370
371
|
* storage_state
|
372
|
+
* unroute_all
|
371
373
|
* unroute
|
372
374
|
* expect_console_message
|
373
375
|
* expect_event
|
@@ -335,6 +335,11 @@ module Playwright
|
|
335
335
|
update_interception_patterns
|
336
336
|
end
|
337
337
|
|
338
|
+
def unroute_all(behavior: nil)
|
339
|
+
@routes.clear
|
340
|
+
update_interception_patterns
|
341
|
+
end
|
342
|
+
|
338
343
|
def unroute(url, handler: nil)
|
339
344
|
@routes.reject! do |handler_entry|
|
340
345
|
handler_entry.same_value?(url: url, handler: handler)
|
@@ -301,6 +301,7 @@ module Playwright
|
|
301
301
|
path: nil,
|
302
302
|
quality: nil,
|
303
303
|
scale: nil,
|
304
|
+
style: nil,
|
304
305
|
timeout: nil,
|
305
306
|
type: nil)
|
306
307
|
|
@@ -312,6 +313,7 @@ module Playwright
|
|
312
313
|
path: path,
|
313
314
|
quality: quality,
|
314
315
|
scale: scale,
|
316
|
+
style: style,
|
315
317
|
timeout: timeout,
|
316
318
|
type: type,
|
317
319
|
}.compact
|
@@ -414,6 +414,11 @@ module Playwright
|
|
414
414
|
update_interception_patterns
|
415
415
|
end
|
416
416
|
|
417
|
+
def unroute_all(behavior: nil)
|
418
|
+
@routes.clear
|
419
|
+
update_interception_patterns
|
420
|
+
end
|
421
|
+
|
417
422
|
def unroute(url, handler: nil)
|
418
423
|
@routes.reject! do |handler_entry|
|
419
424
|
handler_entry.same_value?(url: url, handler: handler)
|
@@ -457,6 +462,7 @@ module Playwright
|
|
457
462
|
path: nil,
|
458
463
|
quality: nil,
|
459
464
|
scale: nil,
|
465
|
+
style: nil,
|
460
466
|
timeout: nil,
|
461
467
|
type: nil)
|
462
468
|
|
@@ -470,6 +476,7 @@ module Playwright
|
|
470
476
|
animations: animations,
|
471
477
|
caret: caret,
|
472
478
|
scale: scale,
|
479
|
+
style: style,
|
473
480
|
timeout: timeout,
|
474
481
|
}.compact
|
475
482
|
if mask.is_a?(Enumerable)
|
@@ -363,6 +363,7 @@ module Playwright
|
|
363
363
|
path: nil,
|
364
364
|
quality: nil,
|
365
365
|
scale: nil,
|
366
|
+
style: nil,
|
366
367
|
timeout: nil,
|
367
368
|
type: nil)
|
368
369
|
|
@@ -376,6 +377,7 @@ module Playwright
|
|
376
377
|
path: path,
|
377
378
|
quality: quality,
|
378
379
|
scale: scale,
|
380
|
+
style: style,
|
379
381
|
timeout: options[:timeout],
|
380
382
|
type: type)
|
381
383
|
end
|
data/lib/playwright/version.rb
CHANGED
@@ -384,6 +384,12 @@ module Playwright
|
|
384
384
|
wrap_impl(@impl.storage_state(path: unwrap_impl(path)))
|
385
385
|
end
|
386
386
|
|
387
|
+
#
|
388
|
+
# Removes all routes created with [`method: BrowserContext.route`] and [`method: BrowserContext.routeFromHAR`].
|
389
|
+
def unroute_all(behavior: nil)
|
390
|
+
wrap_impl(@impl.unroute_all(behavior: unwrap_impl(behavior)))
|
391
|
+
end
|
392
|
+
|
387
393
|
#
|
388
394
|
# Removes a route created with [`method: BrowserContext.route`]. When `handler` is not specified, removes all
|
389
395
|
# routes for the `url`.
|
@@ -382,9 +382,10 @@ module Playwright
|
|
382
382
|
path: nil,
|
383
383
|
quality: nil,
|
384
384
|
scale: nil,
|
385
|
+
style: nil,
|
385
386
|
timeout: nil,
|
386
387
|
type: nil)
|
387
|
-
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), mask: unwrap_impl(mask), maskColor: unwrap_impl(maskColor), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
388
|
+
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), mask: unwrap_impl(mask), maskColor: unwrap_impl(maskColor), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), style: unwrap_impl(style), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
388
389
|
end
|
389
390
|
|
390
391
|
#
|
@@ -538,7 +539,7 @@ module Playwright
|
|
538
539
|
# Depending on the `state` parameter, this method waits for one of the [actionability](../actionability.md) checks
|
539
540
|
# to pass. This method throws when the element is detached while waiting, unless waiting for the `"hidden"` state.
|
540
541
|
# - `"visible"` Wait until the element is [visible](../actionability.md#visible).
|
541
|
-
# - `"hidden"` Wait until the element is [not visible](../actionability.md#visible) or
|
542
|
+
# - `"hidden"` Wait until the element is [not visible](../actionability.md#visible) or not attached. Note that waiting for hidden does not throw when the element detaches.
|
542
543
|
# - `"stable"` Wait until the element is both [visible](../actionability.md#visible) and [stable](../actionability.md#stable).
|
543
544
|
# - `"enabled"` Wait until the element is [enabled](../actionability.md#enabled).
|
544
545
|
# - `"disabled"` Wait until the element is [not enabled](../actionability.md#enabled).
|
@@ -953,9 +953,10 @@ module Playwright
|
|
953
953
|
path: nil,
|
954
954
|
quality: nil,
|
955
955
|
scale: nil,
|
956
|
+
style: nil,
|
956
957
|
timeout: nil,
|
957
958
|
type: nil)
|
958
|
-
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), mask: unwrap_impl(mask), maskColor: unwrap_impl(maskColor), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
959
|
+
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), mask: unwrap_impl(mask), maskColor: unwrap_impl(maskColor), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), style: unwrap_impl(style), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
959
960
|
end
|
960
961
|
|
961
962
|
#
|
@@ -80,8 +80,8 @@ module Playwright
|
|
80
80
|
|
81
81
|
#
|
82
82
|
# The opposite of [`method: LocatorAssertions.toHaveAttribute`].
|
83
|
-
def not_to_have_attribute(name, value, timeout: nil)
|
84
|
-
wrap_impl(@impl.not_to_have_attribute(unwrap_impl(name), unwrap_impl(value), timeout: unwrap_impl(timeout)))
|
83
|
+
def not_to_have_attribute(name, value, ignoreCase: nil, timeout: nil)
|
84
|
+
wrap_impl(@impl.not_to_have_attribute(unwrap_impl(name), unwrap_impl(value), ignoreCase: unwrap_impl(ignoreCase), timeout: unwrap_impl(timeout)))
|
85
85
|
end
|
86
86
|
|
87
87
|
#
|
@@ -133,7 +133,7 @@ module Playwright
|
|
133
133
|
end
|
134
134
|
|
135
135
|
#
|
136
|
-
# Ensures that `Locator` points to an [
|
136
|
+
# Ensures that `Locator` points to an element that is [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot.
|
137
137
|
#
|
138
138
|
# **Usage**
|
139
139
|
#
|
@@ -274,7 +274,7 @@ module Playwright
|
|
274
274
|
end
|
275
275
|
|
276
276
|
#
|
277
|
-
# Ensures that `Locator` points to an
|
277
|
+
# Ensures that `Locator` points to an attached and [visible](../actionability.md#visible) DOM node.
|
278
278
|
#
|
279
279
|
# To check that at least one element from the list is visible, use [`method: Locator.first`].
|
280
280
|
#
|
@@ -299,7 +299,7 @@ module Playwright
|
|
299
299
|
end
|
300
300
|
|
301
301
|
#
|
302
|
-
# Ensures the `Locator` points to an element that contains the given text. You can use regular expressions for the value as well.
|
302
|
+
# Ensures the `Locator` points to an element that contains the given text. All nested elements will be considered when computing the text content of the element. You can use regular expressions for the value as well.
|
303
303
|
#
|
304
304
|
# **Details**
|
305
305
|
#
|
@@ -461,7 +461,7 @@ module Playwright
|
|
461
461
|
end
|
462
462
|
|
463
463
|
#
|
464
|
-
# Ensures the `Locator` points to an element with the given text. You can use regular expressions for the value as well.
|
464
|
+
# Ensures the `Locator` points to an element with the given text. All nested elements will be considered when computing the text content of the element. You can use regular expressions for the value as well.
|
465
465
|
#
|
466
466
|
# **Details**
|
467
467
|
#
|
data/lib/playwright_api/page.rb
CHANGED
@@ -1162,9 +1162,10 @@ module Playwright
|
|
1162
1162
|
path: nil,
|
1163
1163
|
quality: nil,
|
1164
1164
|
scale: nil,
|
1165
|
+
style: nil,
|
1165
1166
|
timeout: nil,
|
1166
1167
|
type: nil)
|
1167
|
-
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), clip: unwrap_impl(clip), fullPage: unwrap_impl(fullPage), mask: unwrap_impl(mask), maskColor: unwrap_impl(maskColor), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
1168
|
+
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), clip: unwrap_impl(clip), fullPage: unwrap_impl(fullPage), mask: unwrap_impl(mask), maskColor: unwrap_impl(maskColor), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), style: unwrap_impl(style), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
1168
1169
|
end
|
1169
1170
|
|
1170
1171
|
#
|
@@ -1376,6 +1377,12 @@ module Playwright
|
|
1376
1377
|
wrap_impl(@impl.uncheck(unwrap_impl(selector), force: unwrap_impl(force), noWaitAfter: unwrap_impl(noWaitAfter), position: unwrap_impl(position), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout), trial: unwrap_impl(trial)))
|
1377
1378
|
end
|
1378
1379
|
|
1380
|
+
#
|
1381
|
+
# Removes all routes created with [`method: Page.route`] and [`method: Page.routeFromHAR`].
|
1382
|
+
def unroute_all(behavior: nil)
|
1383
|
+
wrap_impl(@impl.unroute_all(behavior: unwrap_impl(behavior)))
|
1384
|
+
end
|
1385
|
+
|
1379
1386
|
#
|
1380
1387
|
# Removes a route created with [`method: Page.route`]. When `handler` is not specified, removes all routes for
|
1381
1388
|
# the `url`.
|
@@ -1674,13 +1681,13 @@ module Playwright
|
|
1674
1681
|
end
|
1675
1682
|
|
1676
1683
|
# @nodoc
|
1677
|
-
def
|
1678
|
-
wrap_impl(@impl.
|
1684
|
+
def stop_css_coverage
|
1685
|
+
wrap_impl(@impl.stop_css_coverage)
|
1679
1686
|
end
|
1680
1687
|
|
1681
1688
|
# @nodoc
|
1682
|
-
def
|
1683
|
-
wrap_impl(@impl.
|
1689
|
+
def stop_js_coverage
|
1690
|
+
wrap_impl(@impl.stop_js_coverage)
|
1684
1691
|
end
|
1685
1692
|
|
1686
1693
|
# @nodoc
|
@@ -1689,8 +1696,8 @@ module Playwright
|
|
1689
1696
|
end
|
1690
1697
|
|
1691
1698
|
# @nodoc
|
1692
|
-
def
|
1693
|
-
wrap_impl(@impl.
|
1699
|
+
def start_js_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
|
1700
|
+
wrap_impl(@impl.start_js_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
|
1694
1701
|
end
|
1695
1702
|
|
1696
1703
|
# @nodoc
|
@@ -20,7 +20,7 @@ module Playwright
|
|
20
20
|
# **Usage**
|
21
21
|
#
|
22
22
|
# ```python sync
|
23
|
-
# context.tracing.start(
|
23
|
+
# context.tracing.start(screenshots=True, snapshots=True)
|
24
24
|
# page = context.new_page()
|
25
25
|
# page.goto("https://playwright.dev")
|
26
26
|
# context.tracing.stop(path = "trace.zip")
|
@@ -40,7 +40,7 @@ module Playwright
|
|
40
40
|
# **Usage**
|
41
41
|
#
|
42
42
|
# ```python sync
|
43
|
-
# context.tracing.start(
|
43
|
+
# context.tracing.start(screenshots=True, snapshots=True)
|
44
44
|
# page = context.new_page()
|
45
45
|
# page.goto("https://playwright.dev")
|
46
46
|
#
|
data/playwright.gemspec
CHANGED
@@ -33,9 +33,8 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'faye-websocket'
|
34
34
|
spec.add_development_dependency 'pry-byebug'
|
35
35
|
spec.add_development_dependency 'puma'
|
36
|
-
spec.add_development_dependency 'rake'
|
37
|
-
spec.add_development_dependency 'rspec'
|
38
|
-
spec.add_development_dependency 'rspec_junit_formatter' # for CircleCI.
|
36
|
+
spec.add_development_dependency 'rake'
|
37
|
+
spec.add_development_dependency 'rspec'
|
39
38
|
spec.add_development_dependency 'rubocop-rspec'
|
40
|
-
spec.add_development_dependency 'sinatra'
|
39
|
+
spec.add_development_dependency 'sinatra', '3.2.0'
|
41
40
|
end
|
data/sig/playwright.rbs
CHANGED
@@ -118,7 +118,7 @@ module Playwright
|
|
118
118
|
def press: (String key, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
119
119
|
def query_selector: (String selector) -> (nil | ElementHandle)
|
120
120
|
def query_selector_all: (String selector) -> Array[untyped]
|
121
|
-
def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?timeout: Float, ?type: ("png" | "jpeg")) -> String
|
121
|
+
def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?style: String, ?timeout: Float, ?type: ("png" | "jpeg")) -> String
|
122
122
|
def scroll_into_view_if_needed: (?timeout: Float) -> void
|
123
123
|
def select_option: (?element: (ElementHandle | Array[untyped]), ?index: (Integer | Array[untyped]), ?value: (String | Array[untyped]), ?label: (String | Array[untyped]), ?force: bool, ?noWaitAfter: bool, ?timeout: Float) -> Array[untyped]
|
124
124
|
def select_text: (?force: bool, ?timeout: Float) -> void
|
@@ -306,7 +306,7 @@ module Playwright
|
|
306
306
|
def reload: (?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> (nil | Response)
|
307
307
|
def route: ((String | Regexp | function) url, function handler, ?times: Integer) -> void
|
308
308
|
def route_from_har: ((String | File) har, ?notFound: ("abort" | "fallback"), ?update: bool, ?updateContent: ("embed" | "attach"), ?updateMode: ("full" | "minimal"), ?url: (String | Regexp)) -> void
|
309
|
-
def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?clip: Hash[untyped, untyped], ?fullPage: bool, ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?timeout: Float, ?type: ("png" | "jpeg")) -> String
|
309
|
+
def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?clip: Hash[untyped, untyped], ?fullPage: bool, ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?style: String, ?timeout: Float, ?type: ("png" | "jpeg")) -> String
|
310
310
|
def select_option: (String selector, ?element: (ElementHandle | Array[untyped]), ?index: (Integer | Array[untyped]), ?value: (String | Array[untyped]), ?label: (String | Array[untyped]), ?force: bool, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> Array[untyped]
|
311
311
|
def set_checked: (String selector, bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
312
312
|
def set_content: (String html, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> void
|
@@ -325,6 +325,7 @@ module Playwright
|
|
325
325
|
def title: -> String
|
326
326
|
def type: (String selector, String text, ?delay: Float, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
|
327
327
|
def uncheck: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
328
|
+
def unroute_all: (?behavior: ("wait" | "ignoreErrors" | "default")) -> void
|
328
329
|
def unroute: ((String | Regexp | function) url, ?handler: function) -> void
|
329
330
|
def url: -> String
|
330
331
|
def video: -> (nil | untyped)
|
@@ -383,6 +384,7 @@ module Playwright
|
|
383
384
|
def set_offline: (bool offline) -> void
|
384
385
|
def offline=: (bool offline) -> void
|
385
386
|
def storage_state: (?path: (String | File)) -> Hash[untyped, untyped]
|
387
|
+
def unroute_all: (?behavior: ("wait" | "ignoreErrors" | "default")) -> void
|
386
388
|
def unroute: ((String | Regexp | function) url, ?handler: function) -> void
|
387
389
|
def expect_console_message: (?predicate: function, ?timeout: Float) { () -> void } -> ConsoleMessage
|
388
390
|
def expect_event: (String event, ?predicate: function, ?timeout: Float) { () -> void } -> untyped
|
@@ -484,7 +486,7 @@ module Playwright
|
|
484
486
|
def page: -> Page
|
485
487
|
def press: (String key, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
486
488
|
def press_sequentially: (String text, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
487
|
-
def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?timeout: Float, ?type: ("png" | "jpeg")) -> String
|
489
|
+
def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?style: String, ?timeout: Float, ?type: ("png" | "jpeg")) -> String
|
488
490
|
def scroll_into_view_if_needed: (?timeout: Float) -> void
|
489
491
|
def select_option: (?element: (ElementHandle | Array[untyped]), ?index: (Integer | Array[untyped]), ?value: (String | Array[untyped]), ?label: (String | Array[untyped]), ?force: bool, ?noWaitAfter: bool, ?timeout: Float) -> Array[untyped]
|
490
492
|
def select_text: (?force: bool, ?timeout: Float) -> void
|
@@ -550,7 +552,7 @@ module Playwright
|
|
550
552
|
def not_to_be_in_viewport: (?ratio: Float, ?timeout: Float) -> void
|
551
553
|
def not_to_be_visible: (?timeout: Float, ?visible: bool) -> void
|
552
554
|
def not_to_contain_text: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?ignoreCase: bool, ?timeout: Float, ?useInnerText: bool) -> void
|
553
|
-
def not_to_have_attribute: (String name, (String | Regexp) value, ?timeout: Float) -> void
|
555
|
+
def not_to_have_attribute: (String name, (String | Regexp) value, ?ignoreCase: bool, ?timeout: Float) -> void
|
554
556
|
def not_to_have_class: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?timeout: Float) -> void
|
555
557
|
def not_to_have_count: (Integer count, ?timeout: Float) -> void
|
556
558
|
def not_to_have_css: (String name, (String | Regexp) value, ?timeout: Float) -> void
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playwright-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.41.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -126,32 +126,18 @@ dependencies:
|
|
126
126
|
name: rake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.10.0
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 3.10.0
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rspec_junit_formatter
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - ">="
|
@@ -182,16 +168,16 @@ dependencies:
|
|
182
168
|
name: sinatra
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
|
-
- -
|
171
|
+
- - '='
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
173
|
+
version: 3.2.0
|
188
174
|
type: :development
|
189
175
|
prerelease: false
|
190
176
|
version_requirements: !ruby/object:Gem::Requirement
|
191
177
|
requirements:
|
192
|
-
- -
|
178
|
+
- - '='
|
193
179
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
180
|
+
version: 3.2.0
|
195
181
|
description:
|
196
182
|
email:
|
197
183
|
- q7w8e9w8q7w8e9@yahoo.co.jp
|
@@ -406,5 +392,5 @@ requirements: []
|
|
406
392
|
rubygems_version: 3.3.26
|
407
393
|
signing_key:
|
408
394
|
specification_version: 4
|
409
|
-
summary: The Ruby binding of playwright driver 1.
|
395
|
+
summary: The Ruby binding of playwright driver 1.41.2
|
410
396
|
test_files: []
|