Skip to content

Commit 72ead9a

Browse files
committed
Merge branch 'dev'
2 parents b07ad87 + 92d810e commit 72ead9a

File tree

12 files changed

+1218
-108
lines changed

12 files changed

+1218
-108
lines changed

src/api/api.json

Lines changed: 1040 additions & 49 deletions
Large diffs are not rendered by default.

src/api/browser_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>
280280
/// Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into `recordHar.path` file. If not
281281
/// specified, the HAR is not recorded. Make sure to await [`method: BrowserContext.close`] for the HAR to be saved.
282282
record_har: Option<RecordHar<'k>>,
283+
283284
channel: Option<BrowserChannel>
284285
}
285286
//#[doc = "If `true`, Playwright does not pass its own configurations args and only uses the ones from `args`. Dangerous option;\nuse with care."]
@@ -317,6 +318,8 @@ impl<'a> ConnectOverCdpBuilder<'a> {
317318
}
318319

319320
setter! {
321+
/// Additional HTTP headers to be sent with web socket connect request. Optional.
322+
headers: Option<HashMap<String, String>>,
320323
/// Maximum time in milliseconds to wait for the browser instance to start. Defaults to `30000` (30 seconds). Pass `0` to
321324
/// disable timeout.
322325
timeout: Option<f64>,

src/api/element_handle.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,10 @@ impl HoverBuilder {
421421
/// A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
422422
/// element.
423423
position: Option<Position>,
424-
timeout: Option<f64>
424+
timeout: Option<f64>,
425+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
426+
/// `false`. Useful to wait until the element is ready for the action without performing it.
427+
trial: Option<bool>
425428
}
426429
}
427430

@@ -461,7 +464,10 @@ macro_rules! clicker {
461464
/// A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
462465
/// element.
463466
position: Option<Position>,
464-
timeout: Option<f64>
467+
timeout: Option<f64>,
468+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
469+
/// `false`. Useful to wait until the element is ready for the action without performing it.
470+
trial: Option<bool>
465471
}
466472
}
467473
};
@@ -498,7 +504,10 @@ macro_rules! check_builder {
498504
/// opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to
499505
/// inaccessible pages. Defaults to `false`.
500506
no_wait_after: Option<bool>,
501-
timeout: Option<f64>
507+
timeout: Option<f64>,
508+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
509+
/// `false`. Useful to wait until the element is ready for the action without performing it.
510+
trial: Option<bool>
502511
}
503512
}
504513
};
@@ -537,7 +546,10 @@ impl TapBuilder {
537546
/// A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
538547
/// element.
539548
position: Option<Position>,
540-
timeout: Option<f64>
549+
timeout: Option<f64>,
550+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
551+
/// `false`. Useful to wait until the element is ready for the action without performing it.
552+
trial: Option<bool>
541553
}
542554
}
543555

src/api/frame.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,10 @@ macro_rules! clicker {
720720
/// A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
721721
/// element.
722722
position: Option<Position>,
723-
timeout: Option<f64>
723+
timeout: Option<f64>,
724+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
725+
/// `false`. Useful to wait until the element is ready for the action without performing it.
726+
trial: Option<bool>
724727
}
725728
}
726729
};
@@ -813,7 +816,10 @@ impl<'a> HoverBuilder<'a> {
813816
/// A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
814817
/// element.
815818
position: Option<Position>,
816-
timeout: Option<f64>
819+
timeout: Option<f64>,
820+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
821+
/// `false`. Useful to wait until the element is ready for the action without performing it.
822+
trial: Option<bool>
817823
}
818824
}
819825

@@ -869,7 +875,10 @@ impl<'a> TapBuilder<'a> {
869875
/// A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
870876
/// element.
871877
position: Option<Position>,
872-
timeout: Option<f64>
878+
timeout: Option<f64>,
879+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
880+
/// `false`. Useful to wait until the element is ready for the action without performing it.
881+
trial: Option<bool>
873882
}
874883
}
875884

@@ -927,7 +936,10 @@ macro_rules! check_builder {
927936
/// opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to
928937
/// inaccessible pages. Defaults to `false`.
929938
no_wait_after: Option<bool>,
930-
timeout: Option<f64>
939+
timeout: Option<f64>,
940+
/// When set, this method only performs the [actionability](https://playwright.dev/docs/actionability/) checks and skips the action. Defaults to
941+
/// `false`. Useful to wait until the element is ready for the action without performing it.
942+
trial: Option<bool>
931943
}
932944
}
933945
};

0 commit comments

Comments
 (0)