Struct fantoccini::Element

source ·
pub struct Element { /* private fields */ }
Expand description

A single element on the current page.

Implementations

Look up an attribute value for this element by name.

Ok(None) is returned if the element does not have the given attribute.

Look up a DOM property for this element by name.

Ok(None) is returned if the element does not have the given property.

Retrieve the text contents of this elment.

Retrieve the HTML contents of this element.

inner dictates whether the wrapping node’s HTML is excluded or not. For example, take the HTML:

<div id="foo"><hr /></div>

With inner = true, <hr /> would be returned. With inner = false, <div id="foo"><hr /></div> would be returned instead.

Simulate the user clicking on this element.

Note that since this may result in navigation, we give up the handle to the element.

Simulate the user sending keys to an element.

Get back the Client hosting this Element.

Follow the href target of the element matching the given CSS selector without causing a click interaction.

Note that since this may result in navigation, we give up the handle to the element.

Find and click an option child element by its value attribute.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.