playwright-ruby-client 1.41.1 → 1.41.2
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.
- checksums.yaml +4 -4
- data/lib/playwright/channel_owners/frame.rb +7 -0
- data/lib/playwright/version.rb +1 -1
- data/lib/playwright/waiter.rb +8 -6
- data/lib/playwright_api/page.rb +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58a9ded2fd8c48615353dff41d7e51cdb8044843c8c31f75fba29629695343d0
|
|
4
|
+
data.tar.gz: 94606809f66b81be7cdf019f8cd3951047c00fe7b7f1b2eff771fdea4e46f979
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79eb3d57f9a2ae24b956c87d2097da064d930657b8b7f3d9b5a421d373e87543987c6fbb1f365e2e47b73395d90d53c7c05242948f05a0060764bbb32383fe7e
|
|
7
|
+
data.tar.gz: e16caa92da588254ba267bb4f3c5893724635471124d23a4ac518af121aac319b7ad5c625b9d1b7db241e1800d26c781656761d682523fb685c1a9a6c0c7380b
|
|
@@ -163,6 +163,13 @@ module Playwright
|
|
|
163
163
|
actual_state == option_state
|
|
164
164
|
}
|
|
165
165
|
waiter.wait_for_event(@event_emitter, 'loadstate', predicate: predicate)
|
|
166
|
+
|
|
167
|
+
# Sometimes event is already fired durting setup.
|
|
168
|
+
if @load_states.include?(option_state)
|
|
169
|
+
waiter.force_fulfill(option_state)
|
|
170
|
+
return
|
|
171
|
+
end
|
|
172
|
+
|
|
166
173
|
waiter.result.value!
|
|
167
174
|
|
|
168
175
|
nil
|
data/lib/playwright/version.rb
CHANGED
data/lib/playwright/waiter.rb
CHANGED
|
@@ -75,21 +75,23 @@ module Playwright
|
|
|
75
75
|
@registered_listeners.clear
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
def force_fulfill(result)
|
|
79
|
+
fulfill(result)
|
|
80
|
+
end
|
|
81
|
+
|
|
78
82
|
private def fulfill(result)
|
|
79
83
|
cleanup
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
end
|
|
84
|
+
return if @result.resolved?
|
|
85
|
+
@result.fulfill(result)
|
|
83
86
|
wait_for_event_info_after
|
|
84
87
|
end
|
|
85
88
|
|
|
86
89
|
private def reject(error)
|
|
87
90
|
cleanup
|
|
91
|
+
return if @result.resolved?
|
|
88
92
|
klass = error.is_a?(TimeoutError) ? TimeoutError : Error
|
|
89
93
|
ex = klass.new(message: "#{error.message}#{format_log_recording(@logs)}")
|
|
90
|
-
|
|
91
|
-
@result.reject(ex)
|
|
92
|
-
end
|
|
94
|
+
@result.reject(ex)
|
|
93
95
|
wait_for_event_info_after(error: ex)
|
|
94
96
|
end
|
|
95
97
|
|
data/lib/playwright_api/page.rb
CHANGED
|
@@ -1681,23 +1681,23 @@ module Playwright
|
|
|
1681
1681
|
end
|
|
1682
1682
|
|
|
1683
1683
|
# @nodoc
|
|
1684
|
-
def
|
|
1685
|
-
wrap_impl(@impl.
|
|
1684
|
+
def start_css_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
|
|
1685
|
+
wrap_impl(@impl.start_css_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
|
|
1686
1686
|
end
|
|
1687
1687
|
|
|
1688
1688
|
# @nodoc
|
|
1689
|
-
def
|
|
1690
|
-
wrap_impl(@impl.
|
|
1689
|
+
def stop_css_coverage
|
|
1690
|
+
wrap_impl(@impl.stop_css_coverage)
|
|
1691
1691
|
end
|
|
1692
1692
|
|
|
1693
1693
|
# @nodoc
|
|
1694
|
-
def
|
|
1695
|
-
wrap_impl(@impl.
|
|
1694
|
+
def start_js_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
|
|
1695
|
+
wrap_impl(@impl.start_js_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
|
|
1696
1696
|
end
|
|
1697
1697
|
|
|
1698
1698
|
# @nodoc
|
|
1699
|
-
def
|
|
1700
|
-
wrap_impl(@impl.
|
|
1699
|
+
def stop_js_coverage
|
|
1700
|
+
wrap_impl(@impl.stop_js_coverage)
|
|
1701
1701
|
end
|
|
1702
1702
|
|
|
1703
1703
|
# @nodoc
|
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.41.
|
|
4
|
+
version: 1.41.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YusukeIwaki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|