com.atlassian.pageobjects.elements
Interface PageElementFormJavascript


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.

Since:
2.1

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

select

PageElementJavascript select()
Dispatches a 'select' event to the associated element, as if a text in this element was selected.

Returns:
the associated Javascript object

change

PageElementJavascript change()

Dispatches a 'change' event to the associated element, as if the value of this element has changed.

Returns:
the associated Javascript object

submit

PageElementJavascript submit()

Dispatches a 'submit' event to the associated element, as if its form (or the form it represents) was submitted.

Returns:
the associated Javascript object

focus

PageElementJavascript focus()

Dispatches a 'focus' event to the associated element, as if it received input focus.

Returns:
the associated Javascript object

blur

PageElementJavascript blur()
Dispatches a 'blur' event to the associated element, as if it lost input focus.

Returns:
the associated Javascript object


Copyright © 2014 Atlassian. All rights reserved.