Struct webdriver_client::Element
[−]
[src]
pub struct Element<'a> { /* fields omitted */ }
An HTML element within a WebDriver session.
Methods
impl<'a> Element<'a>
[src]
pub fn new(s: &'a DriverSession, reference: String) -> Self
[src]
pub fn attribute(&self, name: &str) -> Result<String, Error>
[src]
pub fn property(&self, name: &str) -> Result<String, Error>
[src]
Note: Not currently supported by ChromeDriver.
pub fn clear(&self) -> Result<(), Error>
[src]
pub fn css_value(&self, name: &str) -> Result<String, Error>
[src]
pub fn text(&self) -> Result<String, Error>
[src]
pub fn name(&self) -> Result<String, Error>
[src]
Returns the tag name for this element
pub fn find_element(
&self,
selector: &str,
strategy: LocationStrategy
) -> Result<Element, Error>
[src]
&self,
selector: &str,
strategy: LocationStrategy
) -> Result<Element, Error>
pub fn find_elements(
&self,
selector: &str,
strategy: LocationStrategy
) -> Result<Vec<Element>, Error>
[src]
&self,
selector: &str,
strategy: LocationStrategy
) -> Result<Vec<Element>, Error>
pub fn reference(&self) -> Result<JsonValue, Error>
[src]
Returns a reference that can be passed on to the API
pub fn raw_reference(&self) -> &str
[src]
The raw reference id that identifies this element, this can be used with Element::new()
pub fn inner_html(&self) -> Result<JsonValue, Error>
[src]
Gets the innerHTML
javascript attribute for this element. Some drivers can get
this using regular attributes, in others it does not work. This method gets it
executing a bit of javascript.