[−][src]Struct thirtyfour::WebElement
Methods
impl<'a> WebElement
[src]
pub fn new(
conn: Arc<RemoteConnectionAsync>,
session_id: SessionId,
element_id: ElementId
) -> Self
[src]
conn: Arc<RemoteConnectionAsync>,
session_id: SessionId,
element_id: ElementId
) -> Self
pub async fn rect<'_>(&'_ self) -> WebDriverResult<ElementRect>
[src]
pub async fn tag_name<'_>(&'_ self) -> WebDriverResult<String>
[src]
pub async fn text<'_>(&'_ self) -> WebDriverResult<String>
[src]
pub async fn click<'_>(&'_ self) -> WebDriverResult<()>
[src]
pub async fn clear<'_>(&'_ self) -> WebDriverResult<()>
[src]
pub async fn get_property<'_, '_>(
&'_ self,
name: &'_ str
) -> WebDriverResult<String>
[src]
&'_ self,
name: &'_ str
) -> WebDriverResult<String>
pub async fn get_attribute<'_, '_>(
&'_ self,
name: &'_ str
) -> WebDriverResult<String>
[src]
&'_ self,
name: &'_ str
) -> WebDriverResult<String>
pub async fn get_css_property<'_, '_>(
&'_ self,
name: &'_ str
) -> WebDriverResult<String>
[src]
&'_ self,
name: &'_ str
) -> WebDriverResult<String>
pub async fn is_selected<'_>(&'_ self) -> WebDriverResult<bool>
[src]
pub async fn is_enabled<'_>(&'_ self) -> WebDriverResult<bool>
[src]
pub async fn find_element<'_>(
&'_ self,
by: By<'a>
) -> WebDriverResult<WebElement>
[src]
&'_ self,
by: By<'a>
) -> WebDriverResult<WebElement>
pub async fn find_elements<'_>(
&'_ self,
by: By<'a>
) -> WebDriverResult<Vec<WebElement>>
[src]
&'_ self,
by: By<'a>
) -> WebDriverResult<Vec<WebElement>>
pub async fn send_keys<'_>(&'_ self, keys: TypingData) -> WebDriverResult<()>
[src]
pub async fn screenshot_as_base64<'_>(&'_ self) -> WebDriverResult<String>
[src]
pub async fn screenshot_as_png<'_>(&'_ self) -> WebDriverResult<Vec<u8>>
[src]
pub async fn screenshot<'_, '_>(&'_ self, path: &'_ Path) -> WebDriverResult<()>
[src]
Trait Implementations
impl Clone for WebElement
[src]
fn clone(&self) -> WebElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebElement
[src]
impl Display for WebElement
[src]
Auto Trait Implementations
impl Send for WebElement
impl Sync for WebElement
impl Unpin for WebElement
impl !UnwindSafe for WebElement
impl !RefUnwindSafe for WebElement
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,