pub struct FilterOptions {
pub has_text: Option<String>,
pub has_not_text: Option<String>,
pub has: Option<Locator>,
pub has_not: Option<Locator>,
}Expand description
Options for Locator::filter().
Narrows an existing locator according to the specified criteria. All fields are optional; unset fields are ignored.
See: https://playwright.dev/docs/api/class-locator#locator-filter
Fields§
§has_text: Option<String>Matches elements containing the specified text (case-insensitive substring by default).
has_not_text: Option<String>Matches elements that do not contain the specified text anywhere inside.
has: Option<Locator>Narrows to elements that contain a descendant matching this locator.
The inner locator is queried relative to the outer locator’s matched element, not the document root.
has_not: Option<Locator>Narrows to elements that do not contain a descendant matching this locator.
Trait Implementations§
Source§impl Clone for FilterOptions
impl Clone for FilterOptions
Source§fn clone(&self) -> FilterOptions
fn clone(&self) -> FilterOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterOptions
impl Debug for FilterOptions
Source§impl Default for FilterOptions
impl Default for FilterOptions
Source§fn default() -> FilterOptions
fn default() -> FilterOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FilterOptions
impl !RefUnwindSafe for FilterOptions
impl Send for FilterOptions
impl Sync for FilterOptions
impl Unpin for FilterOptions
impl UnsafeUnpin for FilterOptions
impl !UnwindSafe for FilterOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more