|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PageElementFormJavascript
Encapsulates Javascript form element events of the
PageElement.
PageElement.isPresent() of the corresponding page element must return true
before any of the methods of this interface are invoked, otherwise NoSuchElementException
will be raised.
NOTE: all events invoked via this class are pure Javascript events and don't simulate the real user-browser
interaction.
Use this class primarily as workaround when standard methods in
PageElement simulating user interaction don't produce desired results.
| Method Summary | |
|---|---|
PageElementJavascript |
blur()
Dispatches a 'blur' event to the associated element, as if it lost input focus. |
PageElementJavascript |
change()
Dispatches a 'change' event to the associated element, as if the value of this element has changed. |
PageElementJavascript |
focus()
Dispatches a 'focus' event to the associated element, as if it received input focus. |
PageElementJavascript |
select()
Dispatches a 'select' event to the associated element, as if a text in this element was selected. |
PageElementJavascript |
submit()
Dispatches a 'submit' event to the associated element, as if its form (or the form it represents) was submitted. |
| Method Detail |
|---|
PageElementJavascript select()
PageElementJavascript change()
PageElementJavascript submit()
PageElementJavascript focus()
PageElementJavascript blur()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||