Struct simi_test::Element

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

A wrapper helps access real DOM element for testing

Implementations

Return true if there is no element with id=element_id

Create a new TestHelper

Create a new TestHelper from element_id

Query an element by a selector string, panic if none

As a reference to web_sys::EventTarget

As a reference to web_sys::Node

Reference to the element

As a reference to web_sys::HtmlInputElement

As a reference to web_sys::HtmlSelectElement

As a reference to web_sys::HtmlOptionElement

As a reference to web_sys::HtmlTextAreaElement

Simulate a click on the element

Set input element value then trigger an input event

Set input element value then trigger a change event

Set select element value then trigger a change event

Set select element index then trigger a change event

Set textarea element value then trigger a change event

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 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.