playwright-ruby-client 1.61.0 → 1.63.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/README.md +12 -17
- data/documentation/docs/api/api_request_context.md +3 -0
- data/documentation/docs/api/api_response.md +12 -0
- data/documentation/docs/api/browser_context.md +5 -3
- data/documentation/docs/api/browser_type.md +2 -0
- data/documentation/docs/api/credentials.md +6 -2
- data/documentation/docs/api/element_handle.md +7 -0
- data/documentation/docs/api/frame.md +20 -1
- data/documentation/docs/api/frame_locator.md +20 -0
- data/documentation/docs/api/locator.md +57 -0
- data/documentation/docs/api/locator_assertions.md +4 -2
- data/documentation/docs/api/page.md +26 -1
- data/documentation/docs/api/playwright.md +2 -2
- data/documentation/docs/api/tracing.md +3 -1
- data/documentation/docs/article/getting_started.md +12 -11
- data/documentation/docs/article/guides/download_playwright_driver.md +11 -32
- data/documentation/docs/article/guides/launch_browser.md +5 -4
- data/documentation/docs/article/guides/playwright_on_alpine_linux.md +6 -5
- data/documentation/docs/article/guides/rails_integration.md +72 -4
- data/documentation/docs/article/guides/rails_integration_with_null_driver.md +4 -3
- data/documentation/docs/article/guides/semi_automation.md +1 -1
- data/documentation/docs/article/guides/use_storage_state.md +1 -1
- data/documentation/docs/include/api_coverage.md +3 -0
- data/documentation/docusaurus.config.js +31 -0
- data/documentation/package.json +3 -0
- data/documentation/yarn.lock +159 -174
- data/lib/playwright/api_request_impl.rb +3 -1
- data/lib/playwright/api_response_impl.rb +16 -0
- data/lib/playwright/channel.rb +2 -1
- data/lib/playwright/channel_owners/browser.rb +1 -0
- data/lib/playwright/channel_owners/browser_context.rb +22 -3
- data/lib/playwright/channel_owners/element_handle.rb +14 -4
- data/lib/playwright/channel_owners/frame.rb +16 -2
- data/lib/playwright/channel_owners/page.rb +21 -9
- data/lib/playwright/channel_owners/tracing.rb +43 -13
- data/lib/playwright/connection.rb +9 -1
- data/lib/playwright/events.rb +2 -0
- data/lib/playwright/frame_locator_impl.rb +20 -5
- data/lib/playwright/locator_assertions_impl.rb +14 -1
- data/lib/playwright/locator_impl.rb +32 -5
- data/lib/playwright/screencast.rb +20 -6
- data/lib/playwright/screenshot_utils.rb +24 -0
- data/lib/playwright/test.rb +12 -2
- data/lib/playwright/url_matcher.rb +120 -4
- data/lib/playwright/utils.rb +12 -0
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright.rb +2 -2
- data/lib/playwright_api/api_request_context.rb +3 -1
- data/lib/playwright_api/api_response.rb +9 -0
- data/lib/playwright_api/browser_context.rb +16 -14
- data/lib/playwright_api/browser_type.rb +2 -0
- data/lib/playwright_api/credentials.rb +6 -2
- data/lib/playwright_api/element_handle.rb +14 -7
- data/lib/playwright_api/frame.rb +28 -9
- data/lib/playwright_api/frame_locator.rb +20 -0
- data/lib/playwright_api/locator.rb +64 -13
- data/lib/playwright_api/locator_assertions.rb +6 -4
- data/lib/playwright_api/page.rb +46 -21
- data/lib/playwright_api/tracing.rb +4 -2
- data/playwright.gemspec +5 -0
- data/sig/playwright.rbs +49 -46
- metadata +7 -3
data/playwright.gemspec
CHANGED
|
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.summary = "The Ruby binding of playwright driver #{Playwright::COMPATIBLE_PLAYWRIGHT_VERSION}"
|
|
15
15
|
spec.homepage = 'https://github.com/YusukeIwaki/playwright-ruby-client'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
|
+
spec.metadata = {
|
|
18
|
+
'documentation_uri' => 'https://playwright-ruby-client.vercel.app/docs/article/getting_started',
|
|
19
|
+
'source_code_uri' => spec.homepage,
|
|
20
|
+
'bug_tracker_uri' => "#{spec.homepage}/issues",
|
|
21
|
+
}
|
|
17
22
|
|
|
18
23
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
19
24
|
`git ls-files -z`.split("\x0").reject do |f|
|
data/sig/playwright.rbs
CHANGED
|
@@ -95,10 +95,10 @@ module Playwright
|
|
|
95
95
|
|
|
96
96
|
class ElementHandle < JSHandle
|
|
97
97
|
def bounding_box: -> (nil | Hash[untyped, untyped])
|
|
98
|
-
def check: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
99
|
-
def click: (?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
98
|
+
def check: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
99
|
+
def click: (?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
100
100
|
def content_frame: -> (nil | Frame)
|
|
101
|
-
def dblclick: (?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
101
|
+
def dblclick: (?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
102
102
|
def dispatch_event: (String type_, ?eventInit: untyped) -> void
|
|
103
103
|
def eval_on_selector: (String selector, String expression, ?arg: untyped) -> untyped
|
|
104
104
|
def eval_on_selector_all: (String selector, String expression, ?arg: untyped) -> untyped
|
|
@@ -106,7 +106,7 @@ module Playwright
|
|
|
106
106
|
def focus: -> void
|
|
107
107
|
def get_attribute: (String name) -> (nil | String)
|
|
108
108
|
def []: (String name) -> (nil | String)
|
|
109
|
-
def hover: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
109
|
+
def hover: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
110
110
|
def inner_html: -> String
|
|
111
111
|
def inner_text: -> String
|
|
112
112
|
def input_value: (?timeout: Float) -> String
|
|
@@ -120,18 +120,18 @@ module Playwright
|
|
|
120
120
|
def press: (String key, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
121
121
|
def query_selector: (String selector) -> (nil | ElementHandle)
|
|
122
122
|
def query_selector_all: (String selector) -> Array[untyped]
|
|
123
|
-
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
|
|
123
|
+
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" | "webp")) -> String
|
|
124
124
|
def scroll_into_view_if_needed: (?timeout: Float) -> void
|
|
125
125
|
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]
|
|
126
126
|
def select_text: (?force: bool, ?timeout: Float) -> void
|
|
127
|
-
def set_checked: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
128
|
-
def checked=: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
127
|
+
def set_checked: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
128
|
+
def checked=: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
129
129
|
def set_input_files: (((String | File) | Array[untyped] | Hash[untyped, untyped] | Array[untyped]) files, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
130
130
|
def input_files=: (((String | File) | Array[untyped] | Hash[untyped, untyped] | Array[untyped]) files, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
131
|
-
def tap_point: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
131
|
+
def tap_point: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
132
132
|
def text_content: -> (nil | String)
|
|
133
133
|
def type: (String text, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
134
|
-
def uncheck: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
134
|
+
def uncheck: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
135
135
|
def wait_for_element_state: (("visible" | "hidden" | "stable" | "enabled" | "disabled" | "editable") state, ?timeout: Float) -> void
|
|
136
136
|
def wait_for_selector: (String selector, ?state: ("attached" | "detached" | "visible" | "hidden"), ?strict: bool, ?timeout: Float) -> (nil | ElementHandle)
|
|
137
137
|
end
|
|
@@ -147,13 +147,13 @@ module Playwright
|
|
|
147
147
|
class Frame
|
|
148
148
|
def add_script_tag: (?content: String, ?path: (String | File), ?type: String, ?url: String) -> ElementHandle
|
|
149
149
|
def add_style_tag: (?content: String, ?path: (String | File), ?url: String) -> ElementHandle
|
|
150
|
-
def check: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
150
|
+
def check: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
151
151
|
def child_frames: -> Array[untyped]
|
|
152
|
-
def click: (String selector, ?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
152
|
+
def click: (String selector, ?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
153
153
|
def content: -> String
|
|
154
|
-
def dblclick: (String selector, ?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
154
|
+
def dblclick: (String selector, ?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
155
155
|
def dispatch_event: (String selector, String type_, ?eventInit: untyped, ?strict: bool, ?timeout: Float) -> void
|
|
156
|
-
def drag_and_drop: (String source, String target, ?force: bool, ?noWaitAfter: bool, ?sourcePosition: Hash[untyped, untyped], ?steps: Integer, ?strict: bool, ?targetPosition: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
156
|
+
def drag_and_drop: (String source, String target, ?force: bool, ?noWaitAfter: bool, ?scroll: ("auto" | "none"), ?sourcePosition: Hash[untyped, untyped], ?steps: Integer, ?strict: bool, ?targetPosition: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
157
157
|
def eval_on_selector: (String selector, String expression, ?arg: untyped, ?strict: bool) -> untyped
|
|
158
158
|
def eval_on_selector_all: (String selector, String expression, ?arg: untyped) -> untyped
|
|
159
159
|
def evaluate: (String expression, ?arg: untyped) -> untyped
|
|
@@ -161,7 +161,7 @@ module Playwright
|
|
|
161
161
|
def fill: (String selector, String value, ?force: bool, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
|
|
162
162
|
def focus: (String selector, ?strict: bool, ?timeout: Float) -> void
|
|
163
163
|
def frame_element: -> ElementHandle
|
|
164
|
-
def frame_locator: (String selector) -> FrameLocator
|
|
164
|
+
def frame_locator: (?String selector) -> FrameLocator
|
|
165
165
|
def get_attribute: (String selector, String name, ?strict: bool, ?timeout: Float) -> (nil | String)
|
|
166
166
|
def get_by_alt_text: ((String | Regexp) text, ?exact: bool) -> Locator
|
|
167
167
|
def get_by_label: ((String | Regexp) text, ?exact: bool) -> Locator
|
|
@@ -172,7 +172,7 @@ module Playwright
|
|
|
172
172
|
def get_by_text: ((String | Regexp) text, ?exact: bool) -> Locator
|
|
173
173
|
def get_by_title: ((String | Regexp) text, ?exact: bool) -> Locator
|
|
174
174
|
def goto: (String url, ?referer: String, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> (nil | Response)
|
|
175
|
-
def hover: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
175
|
+
def hover: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
176
176
|
def inner_html: (String selector, ?strict: bool, ?timeout: Float) -> String
|
|
177
177
|
def inner_text: (String selector, ?strict: bool, ?timeout: Float) -> String
|
|
178
178
|
def input_value: (String selector, ?strict: bool, ?timeout: Float) -> String
|
|
@@ -191,15 +191,15 @@ module Playwright
|
|
|
191
191
|
def query_selector: (String selector, ?strict: bool) -> (nil | ElementHandle)
|
|
192
192
|
def query_selector_all: (String selector) -> Array[untyped]
|
|
193
193
|
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]
|
|
194
|
-
def set_checked: (String selector, bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
194
|
+
def set_checked: (String selector, bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
195
195
|
def set_content: (String html, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> void
|
|
196
196
|
def content=: (String html, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> void
|
|
197
197
|
def set_input_files: (String selector, ((String | File) | Array[untyped] | Hash[untyped, untyped] | Array[untyped]) files, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
|
|
198
|
-
def tap_point: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
198
|
+
def tap_point: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
199
199
|
def text_content: (String selector, ?strict: bool, ?timeout: Float) -> (nil | String)
|
|
200
200
|
def title: -> String
|
|
201
201
|
def type: (String selector, String text, ?delay: Float, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
|
|
202
|
-
def uncheck: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
202
|
+
def uncheck: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
203
203
|
def url: -> String
|
|
204
204
|
def wait_for_function: (String expression, ?arg: untyped, ?polling: (Float | "raf"), ?timeout: Float) -> JSHandle
|
|
205
205
|
def wait_for_load_state: (?state: ("load" | "domcontentloaded" | "networkidle"), ?timeout: Float) -> void
|
|
@@ -270,14 +270,14 @@ module Playwright
|
|
|
270
270
|
def add_style_tag: (?content: String, ?path: (String | File), ?url: String) -> ElementHandle
|
|
271
271
|
def bring_to_front: -> void
|
|
272
272
|
def cancel_pick_locator: -> void
|
|
273
|
-
def check: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
274
|
-
def click: (String selector, ?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
273
|
+
def check: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
274
|
+
def click: (String selector, ?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
275
275
|
def close: (?reason: String, ?runBeforeUnload: bool) -> void
|
|
276
276
|
def content: -> String
|
|
277
277
|
def context: -> BrowserContext
|
|
278
|
-
def dblclick: (String selector, ?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
278
|
+
def dblclick: (String selector, ?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
279
279
|
def dispatch_event: (String selector, String type_, ?eventInit: untyped, ?strict: bool, ?timeout: Float) -> void
|
|
280
|
-
def drag_and_drop: (String source, String target, ?force: bool, ?noWaitAfter: bool, ?sourcePosition: Hash[untyped, untyped], ?steps: Integer, ?strict: bool, ?targetPosition: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
280
|
+
def drag_and_drop: (String source, String target, ?force: bool, ?noWaitAfter: bool, ?scroll: ("auto" | "none"), ?sourcePosition: Hash[untyped, untyped], ?steps: Integer, ?strict: bool, ?targetPosition: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
281
281
|
def emulate_media: (?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?forcedColors: ("active" | "none" | "null"), ?media: ("screen" | "print" | "null"), ?reducedMotion: ("reduce" | "no-preference" | "null")) -> void
|
|
282
282
|
def eval_on_selector: (String selector, String expression, ?arg: untyped, ?strict: bool) -> untyped
|
|
283
283
|
def eval_on_selector_all: (String selector, String expression, ?arg: untyped) -> untyped
|
|
@@ -288,7 +288,7 @@ module Playwright
|
|
|
288
288
|
def fill: (String selector, String value, ?force: bool, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
|
|
289
289
|
def focus: (String selector, ?strict: bool, ?timeout: Float) -> void
|
|
290
290
|
def frame: (?name: String, ?url: (String | Regexp | function)) -> (nil | Frame)
|
|
291
|
-
def frame_locator: (String selector) -> FrameLocator
|
|
291
|
+
def frame_locator: (?String selector) -> FrameLocator
|
|
292
292
|
def frames: -> Array[untyped]
|
|
293
293
|
def get_attribute: (String selector, String name, ?strict: bool, ?timeout: Float) -> (nil | String)
|
|
294
294
|
def get_by_alt_text: ((String | Regexp) text, ?exact: bool) -> Locator
|
|
@@ -303,7 +303,7 @@ module Playwright
|
|
|
303
303
|
def go_forward: (?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> (nil | Response)
|
|
304
304
|
def goto: (String url, ?referer: String, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> (nil | Response)
|
|
305
305
|
def hide_highlight: -> void
|
|
306
|
-
def hover: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
306
|
+
def hover: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
307
307
|
def inner_html: (String selector, ?strict: bool, ?timeout: Float) -> String
|
|
308
308
|
def inner_text: (String selector, ?strict: bool, ?timeout: Float) -> String
|
|
309
309
|
def input_value: (String selector, ?strict: bool, ?timeout: Float) -> String
|
|
@@ -331,9 +331,9 @@ module Playwright
|
|
|
331
331
|
def reload: (?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> (nil | Response)
|
|
332
332
|
def route: ((String | Regexp | function) url, function handler, ?times: Integer) -> untyped
|
|
333
333
|
def route_from_har: ((String | File) har, ?notFound: ("abort" | "fallback"), ?update: bool, ?updateContent: ("embed" | "attach"), ?updateMode: ("full" | "minimal"), ?url: (String | Regexp)) -> void
|
|
334
|
-
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
|
|
334
|
+
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" | "webp")) -> String
|
|
335
335
|
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]
|
|
336
|
-
def set_checked: (String selector, bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
336
|
+
def set_checked: (String selector, bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
337
337
|
def set_content: (String html, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> void
|
|
338
338
|
def content=: (String html, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> void
|
|
339
339
|
def set_default_navigation_timeout: (Float timeout) -> void
|
|
@@ -346,11 +346,11 @@ module Playwright
|
|
|
346
346
|
def set_viewport_size: (Hash[untyped, untyped] viewportSize) -> void
|
|
347
347
|
def viewport_size=: (Hash[untyped, untyped] viewportSize) -> void
|
|
348
348
|
def aria_snapshot: (?boxes: bool, ?depth: Integer, ?mode: ("ai" | "default"), ?timeout: Float) -> String
|
|
349
|
-
def tap_point: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
349
|
+
def tap_point: (String selector, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
350
350
|
def text_content: (String selector, ?strict: bool, ?timeout: Float) -> (nil | String)
|
|
351
351
|
def title: -> String
|
|
352
352
|
def type: (String selector, String text, ?delay: Float, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
|
|
353
|
-
def uncheck: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
353
|
+
def uncheck: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?strict: bool, ?timeout: Float, ?trial: bool) -> void
|
|
354
354
|
def unroute_all: (?behavior: ("wait" | "ignoreErrors" | "default")) -> void
|
|
355
355
|
def unroute: ((String | Regexp | function) url, ?handler: function) -> void
|
|
356
356
|
def url: -> String
|
|
@@ -413,7 +413,7 @@ module Playwright
|
|
|
413
413
|
def geolocation=: ((nil | Hash[untyped, untyped]) geolocation) -> void
|
|
414
414
|
def set_offline: (bool offline) -> void
|
|
415
415
|
def offline=: (bool offline) -> void
|
|
416
|
-
def storage_state: (?indexedDB: bool, ?path: (String | File)) -> Hash[untyped, untyped]
|
|
416
|
+
def storage_state: (?credentials: bool, ?indexedDB: bool, ?opfs: bool, ?path: (String | File)) -> Hash[untyped, untyped]
|
|
417
417
|
def set_storage_state: (((String | File) | Hash[untyped, untyped]) storageState) -> void
|
|
418
418
|
def storage_state=: (((String | File) | Hash[untyped, untyped]) storageState) -> void
|
|
419
419
|
def unroute_all: (?behavior: ("wait" | "ignoreErrors" | "default")) -> void
|
|
@@ -439,8 +439,8 @@ module Playwright
|
|
|
439
439
|
def contexts: -> Array[untyped]
|
|
440
440
|
def connected?: -> bool
|
|
441
441
|
def new_browser_cdp_session: -> CDPSession
|
|
442
|
-
def new_context: (?acceptDownloads: bool, ?baseURL: String, ?bypassCSP: bool, ?clientCertificates: Array[untyped], ?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?deviceScaleFactor: Float, ?extraHTTPHeaders: Hash[untyped, untyped], ?forcedColors: ("active" | "none" | "null"), ?geolocation: Hash[untyped, untyped], ?hasTouch: bool, ?httpCredentials: Hash[untyped, untyped], ?ignoreHTTPSErrors: bool, ?isMobile: bool, ?javaScriptEnabled: bool, ?locale: String, ?noViewport: bool, ?offline: bool, ?permissions: Array[untyped], ?proxy: Hash[untyped, untyped], ?record_har_content: ("omit" | "embed" | "attach"), ?record_har_mode: ("full" | "minimal"), ?record_har_omit_content: bool, ?record_har_path: (String | File), ?record_har_url_filter: (String | Regexp), ?record_video_dir: (String | File), ?record_video_size: Hash[untyped, untyped], ?reducedMotion: ("reduce" | "no-preference" | "null"), ?screen: Hash[untyped, untyped], ?serviceWorkers: ("allow" | "block"), ?storageState: ((String | File) | Hash[untyped, untyped]), ?strictSelectors: bool, ?timezoneId: String, ?userAgent: String, ?viewport: (nil | Hash[untyped, untyped])) ?{ (BrowserContext) -> untyped } -> BrowserContext
|
|
443
|
-
def new_page: (?acceptDownloads: bool, ?baseURL: String, ?bypassCSP: bool, ?clientCertificates: Array[untyped], ?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?deviceScaleFactor: Float, ?extraHTTPHeaders: Hash[untyped, untyped], ?forcedColors: ("active" | "none" | "null"), ?geolocation: Hash[untyped, untyped], ?hasTouch: bool, ?httpCredentials: Hash[untyped, untyped], ?ignoreHTTPSErrors: bool, ?isMobile: bool, ?javaScriptEnabled: bool, ?locale: String, ?noViewport: bool, ?offline: bool, ?permissions: Array[untyped], ?proxy: Hash[untyped, untyped], ?record_har_content: ("omit" | "embed" | "attach"), ?record_har_mode: ("full" | "minimal"), ?record_har_omit_content: bool, ?record_har_path: (String | File), ?record_har_url_filter: (String | Regexp), ?record_video_dir: (String | File), ?record_video_size: Hash[untyped, untyped], ?reducedMotion: ("reduce" | "no-preference" | "null"), ?screen: Hash[untyped, untyped], ?serviceWorkers: ("allow" | "block"), ?storageState: ((String | File) | Hash[untyped, untyped]), ?strictSelectors: bool, ?timezoneId: String, ?userAgent: String, ?viewport: (nil | Hash[untyped, untyped])) ?{ (Page) -> untyped } -> Page
|
|
442
|
+
def new_context: (?acceptDownloads: bool, ?baseURL: String, ?bypassCSP: bool, ?clientCertificates: Array[untyped], ?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?deviceScaleFactor: Float, ?extraHTTPHeaders: Hash[untyped, untyped], ?forcedColors: ("active" | "none" | "null"), ?geolocation: Hash[untyped, untyped], ?hasTouch: bool, ?httpCredentials: (Hash[untyped, untyped] | Array[untyped]), ?ignoreHTTPSErrors: bool, ?isMobile: bool, ?javaScriptEnabled: bool, ?locale: String, ?noViewport: bool, ?offline: bool, ?permissions: Array[untyped], ?proxy: Hash[untyped, untyped], ?record_har_content: ("omit" | "embed" | "attach"), ?record_har_mode: ("full" | "minimal"), ?record_har_omit_content: bool, ?record_har_path: (String | File), ?record_har_url_filter: (String | Regexp), ?record_video_dir: (String | File), ?record_video_size: Hash[untyped, untyped], ?reducedMotion: ("reduce" | "no-preference" | "null"), ?screen: Hash[untyped, untyped], ?serviceWorkers: ("allow" | "block"), ?storageState: ((String | File) | Hash[untyped, untyped]), ?strictSelectors: bool, ?timezoneId: String, ?userAgent: String, ?viewport: (nil | Hash[untyped, untyped])) ?{ (BrowserContext) -> untyped } -> BrowserContext
|
|
443
|
+
def new_page: (?acceptDownloads: bool, ?baseURL: String, ?bypassCSP: bool, ?clientCertificates: Array[untyped], ?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?deviceScaleFactor: Float, ?extraHTTPHeaders: Hash[untyped, untyped], ?forcedColors: ("active" | "none" | "null"), ?geolocation: Hash[untyped, untyped], ?hasTouch: bool, ?httpCredentials: (Hash[untyped, untyped] | Array[untyped]), ?ignoreHTTPSErrors: bool, ?isMobile: bool, ?javaScriptEnabled: bool, ?locale: String, ?noViewport: bool, ?offline: bool, ?permissions: Array[untyped], ?proxy: Hash[untyped, untyped], ?record_har_content: ("omit" | "embed" | "attach"), ?record_har_mode: ("full" | "minimal"), ?record_har_omit_content: bool, ?record_har_path: (String | File), ?record_har_url_filter: (String | Regexp), ?record_video_dir: (String | File), ?record_video_size: Hash[untyped, untyped], ?reducedMotion: ("reduce" | "no-preference" | "null"), ?screen: Hash[untyped, untyped], ?serviceWorkers: ("allow" | "block"), ?storageState: ((String | File) | Hash[untyped, untyped]), ?strictSelectors: bool, ?timezoneId: String, ?userAgent: String, ?viewport: (nil | Hash[untyped, untyped])) ?{ (Page) -> untyped } -> Page
|
|
444
444
|
def bind: (String title, ?host: String, ?port: Integer, ?workspaceDir: String) -> Hash[untyped, untyped]
|
|
445
445
|
def start_tracing: (?page: Page, ?categories: Array[untyped], ?path: (String | File), ?screenshots: bool) -> void
|
|
446
446
|
def stop_tracing: -> String
|
|
@@ -453,7 +453,7 @@ module Playwright
|
|
|
453
453
|
def connect_over_cdp: (String endpointURL, ?artifactsDir: (String | File), ?headers: Hash[untyped, untyped], ?isLocal: bool, ?noDefaults: bool, ?slowMo: Float, ?timeout: Float) ?{ (untyped) -> untyped } -> Browser
|
|
454
454
|
def executable_path: -> String
|
|
455
455
|
def launch: (?args: Array[untyped], ?artifactsDir: (String | File), ?channel: String, ?chromiumSandbox: bool, ?downloadsPath: (String | File), ?env: Hash[untyped, untyped], ?executablePath: (String | File), ?firefoxUserPrefs: Hash[untyped, untyped], ?handleSIGHUP: bool, ?handleSIGINT: bool, ?handleSIGTERM: bool, ?headless: bool, ?ignoreDefaultArgs: (bool | Array[untyped]), ?proxy: Hash[untyped, untyped], ?slowMo: Float, ?timeout: Float, ?tracesDir: (String | File)) ?{ (Browser) -> untyped } -> Browser
|
|
456
|
-
def launch_persistent_context: ((String | File) userDataDir, ?acceptDownloads: bool, ?args: Array[untyped], ?artifactsDir: (String | File), ?baseURL: String, ?bypassCSP: bool, ?channel: String, ?chromiumSandbox: bool, ?clientCertificates: Array[untyped], ?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?deviceScaleFactor: Float, ?downloadsPath: (String | File), ?env: Hash[untyped, untyped], ?executablePath: (String | File), ?extraHTTPHeaders: Hash[untyped, untyped], ?firefoxUserPrefs: Hash[untyped, untyped], ?forcedColors: ("active" | "none" | "null"), ?geolocation: Hash[untyped, untyped], ?handleSIGHUP: bool, ?handleSIGINT: bool, ?handleSIGTERM: bool, ?hasTouch: bool, ?headless: bool, ?httpCredentials: Hash[untyped, untyped], ?ignoreDefaultArgs: (bool | Array[untyped]), ?ignoreHTTPSErrors: bool, ?isMobile: bool, ?javaScriptEnabled: bool, ?locale: String, ?noViewport: bool, ?offline: bool, ?permissions: Array[untyped], ?proxy: Hash[untyped, untyped], ?record_har_content: ("omit" | "embed" | "attach"), ?record_har_mode: ("full" | "minimal"), ?record_har_omit_content: bool, ?record_har_path: (String | File), ?record_har_url_filter: (String | Regexp), ?record_video_dir: (String | File), ?record_video_size: Hash[untyped, untyped], ?reducedMotion: ("reduce" | "no-preference" | "null"), ?screen: Hash[untyped, untyped], ?serviceWorkers: ("allow" | "block"), ?slowMo: Float, ?strictSelectors: bool, ?timeout: Float, ?timezoneId: String, ?tracesDir: (String | File), ?userAgent: String, ?viewport: (nil | Hash[untyped, untyped])) ?{ (untyped) -> untyped } -> BrowserContext
|
|
456
|
+
def launch_persistent_context: ((String | File) userDataDir, ?acceptDownloads: bool, ?args: Array[untyped], ?artifactsDir: (String | File), ?baseURL: String, ?bypassCSP: bool, ?channel: String, ?chromiumSandbox: bool, ?clientCertificates: Array[untyped], ?colorScheme: ("light" | "dark" | "no-preference" | "null"), ?contrast: ("no-preference" | "more" | "null"), ?deviceScaleFactor: Float, ?downloadsPath: (String | File), ?env: Hash[untyped, untyped], ?executablePath: (String | File), ?extraHTTPHeaders: Hash[untyped, untyped], ?firefoxUserPrefs: Hash[untyped, untyped], ?forcedColors: ("active" | "none" | "null"), ?geolocation: Hash[untyped, untyped], ?handleSIGHUP: bool, ?handleSIGINT: bool, ?handleSIGTERM: bool, ?hasTouch: bool, ?headless: bool, ?httpCredentials: (Hash[untyped, untyped] | Array[untyped]), ?ignoreDefaultArgs: (bool | Array[untyped]), ?ignoreHTTPSErrors: bool, ?isMobile: bool, ?javaScriptEnabled: bool, ?locale: String, ?noViewport: bool, ?offline: bool, ?permissions: Array[untyped], ?proxy: Hash[untyped, untyped], ?record_har_content: ("omit" | "embed" | "attach"), ?record_har_mode: ("full" | "minimal"), ?record_har_omit_content: bool, ?record_har_path: (String | File), ?record_har_url_filter: (String | Regexp), ?record_video_dir: (String | File), ?record_video_size: Hash[untyped, untyped], ?reducedMotion: ("reduce" | "no-preference" | "null"), ?screen: Hash[untyped, untyped], ?serviceWorkers: ("allow" | "block"), ?slowMo: Float, ?strictSelectors: bool, ?timeout: Float, ?timezoneId: String, ?tracesDir: (String | File), ?userAgent: String, ?viewport: (nil | Hash[untyped, untyped])) ?{ (untyped) -> untyped } -> BrowserContext
|
|
457
457
|
def name: -> String
|
|
458
458
|
end
|
|
459
459
|
|
|
@@ -467,7 +467,7 @@ module Playwright
|
|
|
467
467
|
end
|
|
468
468
|
|
|
469
469
|
class Tracing
|
|
470
|
-
def start: (?live: bool, ?name: String, ?screenshots: bool, ?snapshots: bool, ?sources: bool, ?title: String) -> void
|
|
470
|
+
def start: (?ariaSnapshots: bool, ?live: bool, ?name: String, ?screenshots: bool, ?screenSnapshots: bool, ?snapshots: bool, ?sources: bool, ?title: String) -> void
|
|
471
471
|
def start_chunk: (?name: String, ?title: String) -> void
|
|
472
472
|
def start_har: ((String | File) path, ?content: ("omit" | "embed" | "attach"), ?mode: ("full" | "minimal"), ?urlFilter: (String | Regexp)) -> untyped
|
|
473
473
|
def group: (String name, ?location: Hash[untyped, untyped]) -> untyped
|
|
@@ -485,15 +485,15 @@ module Playwright
|
|
|
485
485
|
def aria_snapshot: (?boxes: bool, ?depth: Integer, ?mode: ("ai" | "default"), ?timeout: Float) -> String
|
|
486
486
|
def blur: (?timeout: Float) -> void
|
|
487
487
|
def bounding_box: (?timeout: Float) -> (nil | Hash[untyped, untyped])
|
|
488
|
-
def check: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
488
|
+
def check: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
489
489
|
def clear: (?force: bool, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
490
|
-
def click: (?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
490
|
+
def click: (?button: ("left" | "right" | "middle"), ?clickCount: Integer, ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
491
491
|
def count: -> Integer
|
|
492
|
-
def dblclick: (?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
492
|
+
def dblclick: (?button: ("left" | "right" | "middle"), ?delay: Float, ?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?steps: Integer, ?timeout: Float, ?trial: bool) -> void
|
|
493
493
|
def describe: (String description) -> Locator
|
|
494
494
|
def description: -> (nil | String)
|
|
495
495
|
def dispatch_event: (String type_, ?eventInit: untyped, ?timeout: Float) -> void
|
|
496
|
-
def drag_to: (Locator target, ?force: bool, ?noWaitAfter: bool, ?sourcePosition: Hash[untyped, untyped], ?steps: Integer, ?targetPosition: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
496
|
+
def drag_to: (Locator target, ?force: bool, ?noWaitAfter: bool, ?scroll: ("auto" | "none"), ?sourcePosition: Hash[untyped, untyped], ?steps: Integer, ?targetPosition: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
497
497
|
def drop: (Hash[untyped, untyped] payload, ?position: Hash[untyped, untyped], ?timeout: Float) -> void
|
|
498
498
|
def element_handle: (?timeout: Float) -> ElementHandle
|
|
499
499
|
def element_handles: -> Array[untyped]
|
|
@@ -518,7 +518,7 @@ module Playwright
|
|
|
518
518
|
def get_by_title: ((String | Regexp) text, ?exact: bool) -> Locator
|
|
519
519
|
def hide_highlight: -> void
|
|
520
520
|
def highlight: (?style: String) -> untyped
|
|
521
|
-
def hover: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
521
|
+
def hover: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
522
522
|
def inner_html: (?timeout: Float) -> String
|
|
523
523
|
def inner_text: (?timeout: Float) -> String
|
|
524
524
|
def input_value: (?timeout: Float) -> String
|
|
@@ -536,19 +536,21 @@ module Playwright
|
|
|
536
536
|
def page: -> Page
|
|
537
537
|
def press: (String key, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
538
538
|
def press_sequentially: (String text, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
539
|
-
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
|
|
539
|
+
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" | "webp")) -> String
|
|
540
540
|
def scroll_into_view_if_needed: (?timeout: Float) -> void
|
|
541
541
|
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]
|
|
542
542
|
def select_text: (?force: bool, ?timeout: Float) -> void
|
|
543
|
-
def set_checked: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
544
|
-
def checked=: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
543
|
+
def set_checked: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
544
|
+
def checked=: (bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
545
545
|
def set_input_files: (((String | File) | Array[untyped] | Hash[untyped, untyped] | Array[untyped]) files, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
546
546
|
def input_files=: (((String | File) | Array[untyped] | Hash[untyped, untyped] | Array[untyped]) files, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
547
|
-
def tap_point: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
547
|
+
def tap_point: (?force: bool, ?modifiers: Array[untyped], ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
548
548
|
def text_content: (?timeout: Float) -> (nil | String)
|
|
549
549
|
def type: (String text, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
|
|
550
|
-
def uncheck: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?timeout: Float, ?trial: bool) -> void
|
|
550
|
+
def uncheck: (?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?scroll: ("auto" | "none"), ?timeout: Float, ?trial: bool) -> void
|
|
551
|
+
def visible: -> Locator
|
|
551
552
|
def wait_for: (?state: ("attached" | "detached" | "visible" | "hidden"), ?timeout: Float) -> void
|
|
553
|
+
def wait_for_function: (String expression, ?arg: untyped, ?timeout: Float) -> void
|
|
552
554
|
end
|
|
553
555
|
|
|
554
556
|
class FrameLocator
|
|
@@ -580,6 +582,7 @@ module Playwright
|
|
|
580
582
|
def status: -> Integer
|
|
581
583
|
def status_text: -> String
|
|
582
584
|
def text: -> String
|
|
585
|
+
def timing: -> Hash[untyped, untyped]
|
|
583
586
|
def url: -> String
|
|
584
587
|
end
|
|
585
588
|
|
|
@@ -597,7 +600,7 @@ module Playwright
|
|
|
597
600
|
end
|
|
598
601
|
|
|
599
602
|
class APIRequest
|
|
600
|
-
def new_context: (?baseURL: String, ?clientCertificates: Array[untyped], ?extraHTTPHeaders: Hash[untyped, untyped], ?failOnStatusCode: bool, ?httpCredentials: Hash[untyped, untyped], ?ignoreHTTPSErrors: bool, ?maxRedirects: Integer, ?proxy: Hash[untyped, untyped], ?storageState: ((String | File) | Hash[untyped, untyped]), ?timeout: Float, ?userAgent: String) -> APIRequestContext
|
|
603
|
+
def new_context: (?baseURL: String, ?clientCertificates: Array[untyped], ?extraHTTPHeaders: Hash[untyped, untyped], ?failOnStatusCode: bool, ?httpCredentials: (Hash[untyped, untyped] | Array[untyped]), ?ignoreHTTPSErrors: bool, ?maxRedirects: Integer, ?proxy: Hash[untyped, untyped], ?storageState: ((String | File) | Hash[untyped, untyped]), ?timeout: Float, ?userAgent: String) -> APIRequestContext
|
|
601
604
|
end
|
|
602
605
|
|
|
603
606
|
class LocatorAssertions
|
|
@@ -616,7 +619,7 @@ module Playwright
|
|
|
616
619
|
def not_to_have_accessible_description: ((String | Regexp) name, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
617
620
|
def not_to_have_accessible_error_message: ((String | Regexp) errorMessage, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
618
621
|
def not_to_have_accessible_name: ((String | Regexp) name, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
619
|
-
def not_to_have_attribute: (String name, (String | Regexp)
|
|
622
|
+
def not_to_have_attribute: (String name, ?value: (String | Regexp), ?ignoreCase: bool, ?timeout: Float) -> void
|
|
620
623
|
def not_to_have_class: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?timeout: Float) -> void
|
|
621
624
|
def not_to_have_count: (Integer count, ?timeout: Float) -> void
|
|
622
625
|
def not_to_have_css: (String name, (String | Regexp) value, ?timeout: Float) -> void
|
|
@@ -642,7 +645,7 @@ module Playwright
|
|
|
642
645
|
def to_have_accessible_description: ((String | Regexp) description, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
643
646
|
def to_have_accessible_error_message: ((String | Regexp) errorMessage, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
644
647
|
def to_have_accessible_name: ((String | Regexp) name, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
645
|
-
def to_have_attribute: (String name, (String | Regexp)
|
|
648
|
+
def to_have_attribute: (String name, ?value: (String | Regexp), ?ignoreCase: bool, ?timeout: Float) -> void
|
|
646
649
|
def to_have_class: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?timeout: Float) -> void
|
|
647
650
|
def to_have_count: (Integer count, ?timeout: Float) -> void
|
|
648
651
|
def to_have_css: (String name, (String | Regexp) value, ?pseudo: ("before" | "after"), ?timeout: Float) -> void
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.63.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YusukeIwaki
|
|
@@ -370,6 +370,7 @@ files:
|
|
|
370
370
|
- lib/playwright/raw_headers.rb
|
|
371
371
|
- lib/playwright/route_handler.rb
|
|
372
372
|
- lib/playwright/screencast.rb
|
|
373
|
+
- lib/playwright/screenshot_utils.rb
|
|
373
374
|
- lib/playwright/select_option_values.rb
|
|
374
375
|
- lib/playwright/selectors_impl.rb
|
|
375
376
|
- lib/playwright/test.rb
|
|
@@ -422,7 +423,10 @@ files:
|
|
|
422
423
|
homepage: https://github.com/YusukeIwaki/playwright-ruby-client
|
|
423
424
|
licenses:
|
|
424
425
|
- MIT
|
|
425
|
-
metadata:
|
|
426
|
+
metadata:
|
|
427
|
+
documentation_uri: https://playwright-ruby-client.vercel.app/docs/article/getting_started
|
|
428
|
+
source_code_uri: https://github.com/YusukeIwaki/playwright-ruby-client
|
|
429
|
+
bug_tracker_uri: https://github.com/YusukeIwaki/playwright-ruby-client/issues
|
|
426
430
|
rdoc_options: []
|
|
427
431
|
require_paths:
|
|
428
432
|
- lib
|
|
@@ -439,5 +443,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
439
443
|
requirements: []
|
|
440
444
|
rubygems_version: 3.6.9
|
|
441
445
|
specification_version: 4
|
|
442
|
-
summary: The Ruby binding of playwright driver 1.
|
|
446
|
+
summary: The Ruby binding of playwright driver 1.63.0
|
|
443
447
|
test_files: []
|