pub enum ElementQuerySource {
Driver(SessionHandle),
Element(WebElement),
}
Expand description
Elements can be queried from either a WebDriver or from a WebElement. The command issued to the webdriver will differ depending on the source, i.e. FindElement vs FindElementFromElement etc. but the ElementQuery interface is the same for both.
Variants§
Driver(SessionHandle)
Element(WebElement)
Auto Trait Implementations§
impl Freeze for ElementQuerySource
impl !RefUnwindSafe for ElementQuerySource
impl Send for ElementQuerySource
impl Sync for ElementQuerySource
impl Unpin for ElementQuerySource
impl !UnwindSafe for ElementQuerySource
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