Trait ProviderExt
pub trait ProviderExt {
// Required methods
fn locator(&self, target: AppTarget, selector: &str) -> Locator<'_>;
fn locator_with_opts(
&self,
target: AppTarget,
selector: &str,
opts: QueryOptions,
) -> Locator<'_>;
}Expand description
Extension trait to create Locators directly from a Provider.
Required Methods§
fn locator(&self, target: AppTarget, selector: &str) -> Locator<'_>
fn locator(&self, target: AppTarget, selector: &str) -> Locator<'_>
Create a Locator targeting a specific application.
fn locator_with_opts(
&self,
target: AppTarget,
selector: &str,
opts: QueryOptions,
) -> Locator<'_>
fn locator_with_opts( &self, target: AppTarget, selector: &str, opts: QueryOptions, ) -> Locator<'_>
Create a Locator with custom query options.