public interface ElementEventListener
AbstractElement
implementations. This interface allows you to hook into
those events to do customization.Modifier and Type | Method and Description |
---|---|
void |
afterCheck(Checkable target)
This event gets triggered after we check an element.
|
void |
afterCheck(Checkable target,
String expected)
This event gets triggered before we check an element.
|
void |
afterClick(Clickable target,
Object... expected)
This event gets triggered after we perform a click on an element.
|
void |
afterDeselect(Deselectable target)
This event gets triggered after deselect a option in an element.
|
void |
afterDeselect(Deselectable target,
int index)
This event gets triggered after deselect a option in an element.
|
void |
afterDeselect(Deselectable target,
String value)
This event gets triggered after deselect a option in an element.
|
void |
afterHover(Hoverable target,
Object... expected)
This event gets triggered after we hover an element.
|
void |
afterScreenshot(Clickable target)
This event gets triggered before we take a screenshot when clicking a element.
|
void |
afterSelect(Selectable target,
int index)
This event gets triggered after select a option in an element.
|
void |
afterSelect(Selectable target,
String value)
This event gets triggered after select a option in an element.
|
void |
afterSubmit(Submitable target)
This event gets triggered after we submit an element.
|
void |
afterType(Typeable target,
String value)
This event gets triggered after we start typing in an element.
|
void |
afterUncheck(Uncheckable target)
This event gets triggered after we uncheck an element.
|
void |
afterUncheck(Uncheckable target,
String expected)
This event gets triggered after we uncheck an element.
|
void |
beforeCheck(Checkable target)
This event gets triggered before we check an element.
|
void |
beforeCheck(Checkable target,
String expected)
This event gets triggered before we check an element.
|
void |
beforeClick(Clickable target,
Object... expected)
This event gets triggered before we perform a click on an element.
|
void |
beforeDeselect(Deselectable target)
This event gets triggered before we deselect a option in an element.
|
void |
beforeDeselect(Deselectable target,
int index)
This event gets triggered before we deselect a option in an element.
|
void |
beforeDeselect(Deselectable target,
String value)
This event gets triggered before we deselect a option in an element.
|
void |
beforeHover(Hoverable target,
Object... expected)
This event gets triggered before we hover an element.
|
void |
beforeScreenshot(Clickable target)
This event gets triggered before we take a screenshot when clicking a element.
|
void |
beforeSelect(Selectable target,
int index)
This event gets triggered before we select a option in an element.
|
void |
beforeSelect(Selectable target,
String value)
This event gets triggered before we select a option in an element.
|
void |
beforeSubmit(Submitable target)
This event gets triggered before we submit an element.
|
void |
beforeType(Typeable target,
String value)
This event gets triggered before we start typing in an element.
|
void |
beforeUncheck(Uncheckable target)
This event gets triggered before we uncheck an element.
|
void |
beforeUncheck(Uncheckable target,
String expected)
This event gets triggered before we uncheck an element.
|
void beforeClick(Clickable target, Object... expected)
Button
, CheckBox
, DatePicker
, Form
, Image
, Label
, Link
,
RadioButton
, SelectList
, Table
, TextField
target
- Instance of the element that triggered this event and implements Clickable
expected
- The expected objects that were passed to the click methodvoid afterClick(Clickable target, Object... expected)
Button
, CheckBox
, DatePicker
, Form
, Image
, Label
, Link
,
RadioButton
, SelectList
, Table
, TextField
target
- Instance of the element that triggered this event and implements Clickable
expected
- The expected objects that were passed to the click methodvoid beforeScreenshot(Clickable target)
Button
, CheckBox
, DatePicker
, Form
, Image
, Label
,
Link
, RadioButton
, SelectList
, Table
, TextField
target
- Instance of the element that triggered this event and implements Clickable
void afterScreenshot(Clickable target)
Button
, CheckBox
, DatePicker
, Form
, Image
, Label
,
Link
, RadioButton
, SelectList
, Table
, TextField
target
- Instance of the element that triggered this event and implements Clickable
void beforeType(Typeable target, String value)
TextField
target
- Instance of the element that triggered this event and implements Typeable
value
- The value that was typed in the fieldvoid afterType(Typeable target, String value)
TextField
target
- Instance of the element that triggered this event and implements Typeable
value
- The value that was typed in the fieldvoid beforeCheck(Checkable target, String expected)
CheckBox
,
RadioButton
target
- Instance of the element that triggered this event and implements Checkable
expected
- The expected locator that was passed to the check methodvoid afterCheck(Checkable target, String expected)
CheckBox
,
RadioButton
target
- Instance of the element that triggered this event and implements Checkable
expected
- The expected locator that was passed to the check methodvoid beforeCheck(Checkable target)
CheckBox
,
RadioButton
target
- Instance of the element that triggered this event and implements Checkable
void afterCheck(Checkable target)
CheckBox
,
RadioButton
target
- Instance of the element that triggered this event and implements Checkable
void beforeUncheck(Uncheckable target, String expected)
CheckBox
target
- Instance of the element that triggered this event and implements Uncheckable
expected
- The expected locator that was passed to the check methodvoid afterUncheck(Uncheckable target, String expected)
CheckBox
target
- Instance of the element that triggered this event and implements Uncheckable
expected
- The expected locator that was passed to the check methodvoid beforeUncheck(Uncheckable target)
CheckBox
target
- Instance of the element that triggered this event and implements Uncheckable
void afterUncheck(Uncheckable target)
CheckBox
target
- Instance of the element that triggered this event and implements Uncheckable
void beforeSubmit(Submitable target)
Form
target
- Instance of the element that triggered this event and implements Submitable
void afterSubmit(Submitable target)
Form
target
- Instance of the element that triggered this event and implements Submitable
void beforeSelect(Selectable target, int index)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
index
- The index of the option that we want to selectvoid afterSelect(Selectable target, int index)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
index
- The index of the option that we want to selectvoid beforeSelect(Selectable target, String value)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
value
- The value that is going to be selected in the Listvoid afterSelect(Selectable target, String value)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
value
- The value that was selected in the Listvoid beforeDeselect(Deselectable target, int index)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
index
- The index of the option that we want to deselectvoid afterDeselect(Deselectable target, int index)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
index
- The index of the option that we want to deselectvoid beforeDeselect(Deselectable target, String value)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
value
- The value that is going to be deselected in the Listvoid afterDeselect(Deselectable target, String value)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
value
- The value that was deselected in the Listvoid beforeDeselect(Deselectable target)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
void afterDeselect(Deselectable target)
SelectList
target
- Instance of the element that triggered this event and implements Selectable
void beforeHover(Hoverable target, Object... expected)
Button
,
CheckBox
, DatePicker
, Form
, Image
, Label
, Link
,
RadioButton
, SelectList
, Table
, TextField
target
- Instance of the element that triggered this event and implements Hoverable
expected
- The expected objects that were passed to the hover methodvoid afterHover(Hoverable target, Object... expected)
Button
,
CheckBox
, DatePicker
, Form
, Image
, Label
, Link
,
RadioButton
, SelectList
, Table
, TextField
target
- Instance of the element that triggered this event and implements Hoverable
expected
- The expected objects that were passed to the hover methodCopyright © 2016 PayPal Open Source. All rights reserved.