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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
PageElementJavascript select()
PageElementJavascript change()
PageElementJavascript submit()
PageElementJavascript focus()
PageElementJavascript blur()
Copyright © 2017 Atlassian. All rights reserved.