Trait thirtyfour::components::Component
source · pub trait Component: Sized + From<WebElement> {
// Required method
fn base_element(&self) -> WebElement;
}
Expand description
The Component
trait is automatically implemented by the Component
derive macro.
Anything that implements Component + Clone + From<WebElement>
can be used with
ElementResolver to take the resolved element as input, and return the specific type.
There is also an implementation of ElementResolver for a Vec containing such types.
Required Methods§
sourcefn base_element(&self) -> WebElement
fn base_element(&self) -> WebElement
Get the base element for this component.
Object Safety§
This trait is not object safe.