pub trait ChromiumBrowserHandleExt {
// Required methods
fn activate_extension_action(
&self,
browsing_context_id: BrowsingContextId,
extension_id: impl Into<String>,
) -> Result<(), Error>;
fn find_in_page(
&self,
browsing_context_id: BrowsingContextId,
request_id: u64,
options: ChromeFindInPageOptions,
) -> Result<(), Error>;
fn find_next(
&self,
browsing_context_id: BrowsingContextId,
request_id: u64,
query: impl Into<String>,
match_case: bool,
) -> Result<(), Error>;
fn find_previous(
&self,
browsing_context_id: BrowsingContextId,
request_id: u64,
query: impl Into<String>,
match_case: bool,
) -> Result<(), Error>;
fn stop_finding(
&self,
browsing_context_id: BrowsingContextId,
action: ChromeStopFindAction,
) -> Result<(), Error>;
}Expand description
Extension trait that adds Chrome-specific commands to
BrowserHandle<ChromiumBackend>.
These helpers wrap raw crate::command::ChromeCommand dispatch while
accepting browser-generic BrowsingContextId values at the API boundary.
Required Methods§
Sourcefn activate_extension_action(
&self,
browsing_context_id: BrowsingContextId,
extension_id: impl Into<String>,
) -> Result<(), Error>
fn activate_extension_action( &self, browsing_context_id: BrowsingContextId, extension_id: impl Into<String>, ) -> Result<(), Error>
Activates an extension action for the given browsing context.
Sourcefn find_in_page(
&self,
browsing_context_id: BrowsingContextId,
request_id: u64,
options: ChromeFindInPageOptions,
) -> Result<(), Error>
fn find_in_page( &self, browsing_context_id: BrowsingContextId, request_id: u64, options: ChromeFindInPageOptions, ) -> Result<(), Error>
Starts or updates a Chrome find-in-page request with explicit options.
Sourcefn find_next(
&self,
browsing_context_id: BrowsingContextId,
request_id: u64,
query: impl Into<String>,
match_case: bool,
) -> Result<(), Error>
fn find_next( &self, browsing_context_id: BrowsingContextId, request_id: u64, query: impl Into<String>, match_case: bool, ) -> Result<(), Error>
Advances an existing find session to the next match for query.
Sourcefn find_previous(
&self,
browsing_context_id: BrowsingContextId,
request_id: u64,
query: impl Into<String>,
match_case: bool,
) -> Result<(), Error>
fn find_previous( &self, browsing_context_id: BrowsingContextId, request_id: u64, query: impl Into<String>, match_case: bool, ) -> Result<(), Error>
Advances an existing find session to the previous match for query.
Sourcefn stop_finding(
&self,
browsing_context_id: BrowsingContextId,
action: ChromeStopFindAction,
) -> Result<(), Error>
fn stop_finding( &self, browsing_context_id: BrowsingContextId, action: ChromeStopFindAction, ) -> Result<(), Error>
Stops the active find-in-page session using the requested stop action.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.