thirtyfour::components

Trait 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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§