playwright-ruby-client 1.14.beta1 → 1.14.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/documentation/docs/api/element_handle.md +1 -1
- data/documentation/docs/api/frame.md +3 -1
- data/documentation/docs/api/locator.md +1 -1
- data/documentation/docs/api/page.md +3 -1
- data/lib/playwright/channel_owners/frame.rb +5 -0
- data/lib/playwright/channel_owners/page.rb +4 -0
- data/lib/playwright/tracing_impl.rb +9 -8
- data/lib/playwright/version.rb +1 -1
- data/lib/playwright_api/element_handle.rb +1 -1
- data/lib/playwright_api/frame.rb +4 -2
- data/lib/playwright_api/locator.rb +1 -1
- data/lib/playwright_api/page.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e8cf4acb773b928d276eac118c170bb0eb2f0c8235f7c19bf0ebf2a4883a3e7
|
4
|
+
data.tar.gz: 7a70fbaad653abe274b8fac05b953ec413ca213bfc9d0e6396c3bf2c6c0f5b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 981c3cab4a5060634f858b934b01ef51e0f1e887d2bf5e4bbb62dca636d1ab3b9459542e436965c49cf0240f8431732a5fa50f9b7dc6d324c7c21fc36b8b01b8
|
7
|
+
data.tar.gz: '08e490a08488fac3f0633ade8fc4f2299dc6e69fcc6cd86c5587197a9a7bfdca78e836de8fff6b0a578c64387b59c0cba2f245a93280ba7e7b0e6488875ae819'
|
@@ -331,7 +331,7 @@ Returns the `element.innerText`.
|
|
331
331
|
def input_value(timeout: nil)
|
332
332
|
```
|
333
333
|
|
334
|
-
Returns `input.value` for `<input>` or `<textarea>` element. Throws for non-input elements.
|
334
|
+
Returns `input.value` for `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
335
335
|
|
336
336
|
## checked?
|
337
337
|
|
@@ -212,7 +212,9 @@ def drag_and_drop(
|
|
212
212
|
target,
|
213
213
|
force: nil,
|
214
214
|
noWaitAfter: nil,
|
215
|
+
sourcePosition: nil,
|
215
216
|
strict: nil,
|
217
|
+
targetPosition: nil,
|
216
218
|
timeout: nil,
|
217
219
|
trial: nil)
|
218
220
|
```
|
@@ -479,7 +481,7 @@ Returns `element.innerText`.
|
|
479
481
|
def input_value(selector, strict: nil, timeout: nil)
|
480
482
|
```
|
481
483
|
|
482
|
-
Returns `input.value` for the selected `<input>` or `<textarea>` element. Throws for non-input elements.
|
484
|
+
Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
483
485
|
|
484
486
|
## checked?
|
485
487
|
|
@@ -368,7 +368,7 @@ Returns the `element.innerText`.
|
|
368
368
|
def input_value(timeout: nil)
|
369
369
|
```
|
370
370
|
|
371
|
-
Returns `input.value` for `<input>` or `<textarea>` element. Throws for non-input elements.
|
371
|
+
Returns `input.value` for `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
372
372
|
|
373
373
|
## checked?
|
374
374
|
|
@@ -269,7 +269,9 @@ def drag_and_drop(
|
|
269
269
|
target,
|
270
270
|
force: nil,
|
271
271
|
noWaitAfter: nil,
|
272
|
+
sourcePosition: nil,
|
272
273
|
strict: nil,
|
274
|
+
targetPosition: nil,
|
273
275
|
timeout: nil,
|
274
276
|
trial: nil)
|
275
277
|
```
|
@@ -686,7 +688,7 @@ Returns `element.innerText`.
|
|
686
688
|
def input_value(selector, strict: nil, timeout: nil)
|
687
689
|
```
|
688
690
|
|
689
|
-
Returns `input.value` for the selected `<input>` or `<textarea>` element. Throws for non-input elements.
|
691
|
+
Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
690
692
|
|
691
693
|
## checked?
|
692
694
|
|
@@ -309,15 +309,20 @@ module Playwright
|
|
309
309
|
target,
|
310
310
|
force: nil,
|
311
311
|
noWaitAfter: nil,
|
312
|
+
sourcePosition: nil,
|
312
313
|
strict: nil,
|
314
|
+
targetPosition: nil,
|
313
315
|
timeout: nil,
|
314
316
|
trial: nil)
|
317
|
+
|
315
318
|
params = {
|
316
319
|
source: source,
|
317
320
|
target: target,
|
318
321
|
force: force,
|
319
322
|
noWaitAfter: noWaitAfter,
|
323
|
+
sourcePosition: sourcePosition,
|
320
324
|
strict: strict,
|
325
|
+
targetPosition: targetPosition,
|
321
326
|
timeout: timeout,
|
322
327
|
trial: trial,
|
323
328
|
}.compact
|
@@ -475,7 +475,9 @@ module Playwright
|
|
475
475
|
target,
|
476
476
|
force: nil,
|
477
477
|
noWaitAfter: nil,
|
478
|
+
sourcePosition: nil,
|
478
479
|
strict: nil,
|
480
|
+
targetPosition: nil,
|
479
481
|
timeout: nil,
|
480
482
|
trial: nil)
|
481
483
|
|
@@ -484,7 +486,9 @@ module Playwright
|
|
484
486
|
target,
|
485
487
|
force: force,
|
486
488
|
noWaitAfter: noWaitAfter,
|
489
|
+
sourcePosition: sourcePosition,
|
487
490
|
strict: strict,
|
491
|
+
targetPosition: targetPosition,
|
488
492
|
timeout: timeout,
|
489
493
|
trial: trial)
|
490
494
|
end
|
@@ -16,16 +16,17 @@ module Playwright
|
|
16
16
|
|
17
17
|
# Stop tracing.
|
18
18
|
def stop(path: nil)
|
19
|
+
export(path: path) if path
|
19
20
|
@channel.send_message_to_server('tracingStop')
|
21
|
+
end
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
23
|
+
private def export(path:)
|
24
|
+
resp = @channel.send_message_to_server('tracingExport')
|
25
|
+
artifact = ChannelOwners::Artifact.from(resp)
|
26
|
+
# if self._context._browser:
|
27
|
+
# artifact._is_remote = self._context._browser._is_remote
|
28
|
+
artifact.save_as(path)
|
29
|
+
artifact.delete
|
29
30
|
end
|
30
31
|
end
|
31
32
|
end
|
data/lib/playwright/version.rb
CHANGED
@@ -268,7 +268,7 @@ module Playwright
|
|
268
268
|
wrap_impl(@impl.inner_text)
|
269
269
|
end
|
270
270
|
|
271
|
-
# Returns `input.value` for `<input>` or `<textarea>` element. Throws for non-input elements.
|
271
|
+
# Returns `input.value` for `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
272
272
|
def input_value(timeout: nil)
|
273
273
|
wrap_impl(@impl.input_value(timeout: unwrap_impl(timeout)))
|
274
274
|
end
|
data/lib/playwright_api/frame.rb
CHANGED
@@ -173,10 +173,12 @@ module Playwright
|
|
173
173
|
target,
|
174
174
|
force: nil,
|
175
175
|
noWaitAfter: nil,
|
176
|
+
sourcePosition: nil,
|
176
177
|
strict: nil,
|
178
|
+
targetPosition: nil,
|
177
179
|
timeout: nil,
|
178
180
|
trial: nil)
|
179
|
-
wrap_impl(@impl.drag_and_drop(unwrap_impl(source), unwrap_impl(target), force: unwrap_impl(force), noWaitAfter: unwrap_impl(noWaitAfter), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout), trial: unwrap_impl(trial)))
|
181
|
+
wrap_impl(@impl.drag_and_drop(unwrap_impl(source), unwrap_impl(target), force: unwrap_impl(force), noWaitAfter: unwrap_impl(noWaitAfter), sourcePosition: unwrap_impl(sourcePosition), strict: unwrap_impl(strict), targetPosition: unwrap_impl(targetPosition), timeout: unwrap_impl(timeout), trial: unwrap_impl(trial)))
|
180
182
|
end
|
181
183
|
|
182
184
|
# Returns the return value of `expression`.
|
@@ -380,7 +382,7 @@ module Playwright
|
|
380
382
|
wrap_impl(@impl.inner_text(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
381
383
|
end
|
382
384
|
|
383
|
-
# Returns `input.value` for the selected `<input>` or `<textarea>` element. Throws for non-input elements.
|
385
|
+
# Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
384
386
|
def input_value(selector, strict: nil, timeout: nil)
|
385
387
|
wrap_impl(@impl.input_value(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
386
388
|
end
|
@@ -282,7 +282,7 @@ module Playwright
|
|
282
282
|
wrap_impl(@impl.inner_text(timeout: unwrap_impl(timeout)))
|
283
283
|
end
|
284
284
|
|
285
|
-
# Returns `input.value` for `<input>` or `<textarea>` element. Throws for non-input elements.
|
285
|
+
# Returns `input.value` for `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
286
286
|
def input_value(timeout: nil)
|
287
287
|
wrap_impl(@impl.input_value(timeout: unwrap_impl(timeout)))
|
288
288
|
end
|
data/lib/playwright_api/page.rb
CHANGED
@@ -246,10 +246,12 @@ module Playwright
|
|
246
246
|
target,
|
247
247
|
force: nil,
|
248
248
|
noWaitAfter: nil,
|
249
|
+
sourcePosition: nil,
|
249
250
|
strict: nil,
|
251
|
+
targetPosition: nil,
|
250
252
|
timeout: nil,
|
251
253
|
trial: nil)
|
252
|
-
wrap_impl(@impl.drag_and_drop(unwrap_impl(source), unwrap_impl(target), force: unwrap_impl(force), noWaitAfter: unwrap_impl(noWaitAfter), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout), trial: unwrap_impl(trial)))
|
254
|
+
wrap_impl(@impl.drag_and_drop(unwrap_impl(source), unwrap_impl(target), force: unwrap_impl(force), noWaitAfter: unwrap_impl(noWaitAfter), sourcePosition: unwrap_impl(sourcePosition), strict: unwrap_impl(strict), targetPosition: unwrap_impl(targetPosition), timeout: unwrap_impl(timeout), trial: unwrap_impl(trial)))
|
253
255
|
end
|
254
256
|
|
255
257
|
# This method changes the `CSS media type` through the `media` argument, and/or the `'prefers-colors-scheme'` media
|
@@ -614,7 +616,7 @@ module Playwright
|
|
614
616
|
wrap_impl(@impl.inner_text(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
615
617
|
end
|
616
618
|
|
617
|
-
# Returns `input.value` for the selected `<input>` or `<textarea>` element. Throws for non-input elements.
|
619
|
+
# Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element. Throws for non-input elements.
|
618
620
|
def input_value(selector, strict: nil, timeout: nil)
|
619
621
|
wrap_impl(@impl.input_value(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
620
622
|
end
|