playwright-ruby-client 1.51.0 → 1.56.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.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +5 -0
- data/README.md +4 -0
- data/documentation/docs/api/browser_context.md +7 -3
- data/documentation/docs/api/console_message.md +0 -3
- data/documentation/docs/api/experimental/android.md +10 -0
- data/documentation/docs/api/frame.md +1 -0
- data/documentation/docs/api/frame_locator.md +1 -0
- data/documentation/docs/api/locator.md +24 -0
- data/documentation/docs/api/locator_assertions.md +47 -1
- data/documentation/docs/api/mouse.md +2 -0
- data/documentation/docs/api/page.md +34 -2
- data/documentation/docs/api/route.md +2 -0
- data/documentation/docs/api/selectors.md +10 -0
- data/documentation/docs/api/tracing.md +8 -0
- data/documentation/docs/article/guides/inspector.md +1 -1
- data/documentation/docs/article/guides/playwright_on_alpine_linux.md +9 -69
- data/documentation/docs/include/api_coverage.md +8 -2
- data/documentation/package.json +3 -3
- data/documentation/yarn.lock +12372 -8623
- data/lib/playwright/channel.rb +6 -3
- data/lib/playwright/channel_owners/android.rb +12 -0
- data/lib/playwright/channel_owners/android_device.rb +6 -5
- data/lib/playwright/channel_owners/api_request_context.rb +6 -1
- data/lib/playwright/channel_owners/browser.rb +37 -6
- data/lib/playwright/channel_owners/browser_context.rb +47 -38
- data/lib/playwright/channel_owners/browser_type.rb +43 -14
- data/lib/playwright/channel_owners/element_handle.rb +22 -17
- data/lib/playwright/channel_owners/frame.rb +65 -34
- data/lib/playwright/channel_owners/page.rb +39 -9
- data/lib/playwright/channel_owners/playwright.rb +10 -4
- data/lib/playwright/channel_owners/web_socket.rb +1 -1
- data/lib/playwright/connection.rb +3 -0
- data/lib/playwright/console_message_impl.rb +3 -2
- data/lib/playwright/file_chooser_impl.rb +3 -2
- data/lib/playwright/frame_locator_impl.rb +5 -8
- data/lib/playwright/javascript/value_parser.rb +54 -2
- data/lib/playwright/locator_assertions_impl.rb +100 -34
- data/lib/playwright/locator_impl.rb +26 -36
- data/lib/playwright/page_assertions_impl.rb +16 -11
- data/lib/playwright/selectors_impl.rb +45 -0
- data/lib/playwright/test.rb +21 -3
- data/lib/playwright/timeout_settings.rb +5 -0
- data/lib/playwright/transport.rb +1 -1
- data/lib/playwright/utils.rb +0 -33
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright/web_socket_client.rb +4 -1
- data/lib/playwright/web_socket_transport.rb +3 -1
- data/lib/playwright.rb +14 -14
- data/lib/playwright_api/android.rb +12 -7
- data/lib/playwright_api/android_device.rb +8 -8
- data/lib/playwright_api/api_request.rb +1 -0
- data/lib/playwright_api/api_request_context.rb +6 -6
- data/lib/playwright_api/browser.rb +6 -6
- data/lib/playwright_api/browser_context.rb +17 -17
- data/lib/playwright_api/browser_type.rb +6 -6
- data/lib/playwright_api/cdp_session.rb +6 -6
- data/lib/playwright_api/console_message.rb +0 -4
- data/lib/playwright_api/dialog.rb +6 -6
- data/lib/playwright_api/element_handle.rb +6 -6
- data/lib/playwright_api/frame.rb +12 -6
- data/lib/playwright_api/frame_locator.rb +1 -0
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +30 -3
- data/lib/playwright_api/locator_assertions.rb +47 -3
- data/lib/playwright_api/mouse.rb +2 -0
- data/lib/playwright_api/page.rb +41 -13
- data/lib/playwright_api/playwright.rb +6 -6
- data/lib/playwright_api/request.rb +6 -6
- data/lib/playwright_api/response.rb +6 -6
- data/lib/playwright_api/route.rb +8 -6
- data/lib/playwright_api/selectors.rb +1 -28
- data/lib/playwright_api/tracing.rb +14 -6
- data/lib/playwright_api/web_socket.rb +6 -6
- data/lib/playwright_api/worker.rb +8 -8
- data/sig/playwright.rbs +15 -1
- metadata +6 -5
- data/lib/playwright/channel_owners/selectors.rb +0 -26
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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.56.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YusukeIwaki
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: concurrent-ruby
|
|
@@ -199,6 +199,7 @@ extra_rdoc_files: []
|
|
|
199
199
|
files:
|
|
200
200
|
- ".rspec"
|
|
201
201
|
- CODE_OF_CONDUCT.md
|
|
202
|
+
- CONTRIBUTING.md
|
|
202
203
|
- Gemfile
|
|
203
204
|
- LICENSE.txt
|
|
204
205
|
- README.md
|
|
@@ -303,7 +304,6 @@ files:
|
|
|
303
304
|
- lib/playwright/channel_owners/request.rb
|
|
304
305
|
- lib/playwright/channel_owners/response.rb
|
|
305
306
|
- lib/playwright/channel_owners/route.rb
|
|
306
|
-
- lib/playwright/channel_owners/selectors.rb
|
|
307
307
|
- lib/playwright/channel_owners/stream.rb
|
|
308
308
|
- lib/playwright/channel_owners/tracing.rb
|
|
309
309
|
- lib/playwright/channel_owners/web_socket.rb
|
|
@@ -339,6 +339,7 @@ files:
|
|
|
339
339
|
- lib/playwright/raw_headers.rb
|
|
340
340
|
- lib/playwright/route_handler.rb
|
|
341
341
|
- lib/playwright/select_option_values.rb
|
|
342
|
+
- lib/playwright/selectors_impl.rb
|
|
342
343
|
- lib/playwright/test.rb
|
|
343
344
|
- lib/playwright/timeout_settings.rb
|
|
344
345
|
- lib/playwright/touchscreen_impl.rb
|
|
@@ -407,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
407
408
|
- !ruby/object:Gem::Version
|
|
408
409
|
version: '0'
|
|
409
410
|
requirements: []
|
|
410
|
-
rubygems_version: 3.6.
|
|
411
|
+
rubygems_version: 3.6.9
|
|
411
412
|
specification_version: 4
|
|
412
|
-
summary: The Ruby binding of playwright driver 1.
|
|
413
|
+
summary: The Ruby binding of playwright driver 1.56.1
|
|
413
414
|
test_files: []
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module Playwright
|
|
2
|
-
# https://github.com/microsoft/playwright-python/blob/master/playwright/_impl/_selectors.py
|
|
3
|
-
define_channel_owner :Selectors do
|
|
4
|
-
def register(name, contentScript: nil, path: nil, script: nil)
|
|
5
|
-
source =
|
|
6
|
-
if path
|
|
7
|
-
File.read(path)
|
|
8
|
-
elsif script
|
|
9
|
-
script
|
|
10
|
-
else
|
|
11
|
-
raise ArgumentError.new('Either path or script parameter must be specified')
|
|
12
|
-
end
|
|
13
|
-
params = { name: name, source: source }
|
|
14
|
-
if contentScript
|
|
15
|
-
params[:contentScript] = true
|
|
16
|
-
end
|
|
17
|
-
@channel.send_message_to_server('register', params)
|
|
18
|
-
|
|
19
|
-
nil
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def text_id_attribute=(attribute_name)
|
|
23
|
-
::Playwright::LocatorUtils.instance_variable_set(:@test_id_attribute_name, attribute_name)
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|