playwright-ruby-client 1.61.0 → 1.62.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_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 +8 -0
- data/documentation/docs/api/locator.md +29 -0
- data/documentation/docs/api/locator_assertions.md +4 -2
- data/documentation/docs/api/page.md +14 -0
- data/documentation/docs/api/playwright.md +2 -2
- 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 +2 -0
- data/documentation/docusaurus.config.js +31 -0
- data/documentation/package.json +3 -0
- data/documentation/yarn.lock +159 -174
- data/lib/playwright/api_response_impl.rb +16 -0
- data/lib/playwright/channel_owners/browser_context.rb +6 -2
- data/lib/playwright/channel_owners/element_handle.rb +14 -4
- data/lib/playwright/channel_owners/frame.rb +14 -0
- data/lib/playwright/channel_owners/page.rb +19 -8
- data/lib/playwright/connection.rb +9 -1
- data/lib/playwright/locator_assertions_impl.rb +14 -1
- data/lib/playwright/locator_impl.rb +28 -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/version.rb +2 -2
- data/lib/playwright.rb +2 -2
- data/lib/playwright_api/api_request_context.rb +6 -6
- data/lib/playwright_api/api_response.rb +9 -0
- data/lib/playwright_api/browser.rb +6 -6
- data/lib/playwright_api/browser_context.rb +14 -12
- data/lib/playwright_api/browser_type.rb +8 -6
- data/lib/playwright_api/cdp_session.rb +6 -6
- data/lib/playwright_api/credentials.rb +6 -2
- data/lib/playwright_api/dialog.rb +6 -6
- data/lib/playwright_api/element_handle.rb +20 -13
- data/lib/playwright_api/frame.rb +29 -21
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +39 -13
- data/lib/playwright_api/locator_assertions.rb +6 -4
- data/lib/playwright_api/page.rb +37 -23
- data/lib/playwright_api/playwright.rb +6 -6
- data/lib/playwright_api/request.rb +8 -8
- data/lib/playwright_api/response.rb +6 -6
- data/lib/playwright_api/route.rb +6 -6
- data/lib/playwright_api/tracing.rb +6 -6
- data/lib/playwright_api/web_socket.rb +6 -6
- data/lib/playwright_api/worker.rb +8 -8
- data/playwright.gemspec +5 -0
- data/sig/playwright.rbs +41 -39
- metadata +7 -3
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
|
|
@@ -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
|
|
@@ -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, ?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
|
|
@@ -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,20 @@ 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
551
|
def wait_for: (?state: ("attached" | "detached" | "visible" | "hidden"), ?timeout: Float) -> void
|
|
552
|
+
def wait_for_function: (String expression, ?arg: untyped, ?timeout: Float) -> void
|
|
552
553
|
end
|
|
553
554
|
|
|
554
555
|
class FrameLocator
|
|
@@ -580,6 +581,7 @@ module Playwright
|
|
|
580
581
|
def status: -> Integer
|
|
581
582
|
def status_text: -> String
|
|
582
583
|
def text: -> String
|
|
584
|
+
def timing: -> Hash[untyped, untyped]
|
|
583
585
|
def url: -> String
|
|
584
586
|
end
|
|
585
587
|
|
|
@@ -616,7 +618,7 @@ module Playwright
|
|
|
616
618
|
def not_to_have_accessible_description: ((String | Regexp) name, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
617
619
|
def not_to_have_accessible_error_message: ((String | Regexp) errorMessage, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
618
620
|
def not_to_have_accessible_name: ((String | Regexp) name, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
619
|
-
def not_to_have_attribute: (String name, (String | Regexp)
|
|
621
|
+
def not_to_have_attribute: (String name, ?value: (String | Regexp), ?ignoreCase: bool, ?timeout: Float) -> void
|
|
620
622
|
def not_to_have_class: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?timeout: Float) -> void
|
|
621
623
|
def not_to_have_count: (Integer count, ?timeout: Float) -> void
|
|
622
624
|
def not_to_have_css: (String name, (String | Regexp) value, ?timeout: Float) -> void
|
|
@@ -642,7 +644,7 @@ module Playwright
|
|
|
642
644
|
def to_have_accessible_description: ((String | Regexp) description, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
643
645
|
def to_have_accessible_error_message: ((String | Regexp) errorMessage, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
644
646
|
def to_have_accessible_name: ((String | Regexp) name, ?ignoreCase: bool, ?timeout: Float) -> void
|
|
645
|
-
def to_have_attribute: (String name, (String | Regexp)
|
|
647
|
+
def to_have_attribute: (String name, ?value: (String | Regexp), ?ignoreCase: bool, ?timeout: Float) -> void
|
|
646
648
|
def to_have_class: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?timeout: Float) -> void
|
|
647
649
|
def to_have_count: (Integer count, ?timeout: Float) -> void
|
|
648
650
|
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.62.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.62.1
|
|
443
447
|
test_files: []
|