pub struct By { /* private fields */ }
Expand description
Element Selector struct providing a convenient way to specify selectors.
Implementations§
Source§impl By
impl By
Sourcepub fn Id(id: impl IntoArcStr) -> Self
pub fn Id(id: impl IntoArcStr) -> Self
Select element by id.
Sourcepub fn LinkText(text: impl IntoArcStr) -> Self
pub fn LinkText(text: impl IntoArcStr) -> Self
Select element by link text.
Sourcepub fn PartialLinkText(text: impl IntoArcStr) -> Self
pub fn PartialLinkText(text: impl IntoArcStr) -> Self
Select element by partial link text.
Sourcepub fn Css(css: impl IntoArcStr) -> Self
pub fn Css(css: impl IntoArcStr) -> Self
Select element by CSS.
Sourcepub fn XPath(x: impl IntoArcStr) -> Self
pub fn XPath(x: impl IntoArcStr) -> Self
Select element by XPath.
Sourcepub fn Name(name: impl IntoArcStr) -> Self
pub fn Name(name: impl IntoArcStr) -> Self
Select element by name.
Sourcepub fn Tag(tag: impl IntoArcStr) -> Self
pub fn Tag(tag: impl IntoArcStr) -> Self
Select element by tag.
Sourcepub fn ClassName(name: impl IntoArcStr) -> Self
pub fn ClassName(name: impl IntoArcStr) -> Self
Select element by class.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for By
impl RefUnwindSafe for By
impl Send for By
impl Sync for By
impl Unpin for By
impl UnwindSafe for By
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