Skip to main content

IElementActionsListener

Implementation​

In order inject your customized logging for your reports or you want to perform any other action when handling the Element related actions, you can implement this class and provide your implementations for different methods available in this listener interface.

onClear (locator)​

This method will get executed after clearing the value in the element located by using the provided locator.

onGetAttribute (locator, attribute)​

This method will get executed after getting the given attribute in the element located by using the provided locator.

onGetStyle (locator, styleName)​

This method will get executed after getting the given style in the element located by using the provided locator.

onGetText (locator)​

This method will get executed after getting the text of the element located by using the provided locator.

onIsDisplayed (locator)​

This method will get executed after checking if the element located by using the provided locator is displayed.

onIsEnabled (locator)​

This method will get executed after checking if the element located by using the provided locator is enabled.

onIsSelected (locator)​

This method will get executed after checking if the element located by using the provided locator is selected.

onScrollIntoView (locator)​

This method will get executed after scroll the element located by using the provided locator into view.

onVerifyAttribute (locator, attribute)​

This method will get executed after verifying the provided attribute value of the element located by using the provided locator into view.

onVerifyIsDisplayed (locator)​

This method will get executed after verifying the element located by using the provided locator is displayed.

onVerifyIsEnabled (locator)​

This method will get executed after verifying the element located by using the provided locator is enabled.

onVerifyIsSelected (locator)​

This method will get executed after verifying the element located by using the provided locator is selected.

onVerifyStyle (locator, styleName)​

This method will get executed after verifying the provided style of the element located by using the provided locator.

onVerifyText (locator)​

This method will get executed after verifying the text of the element located by using the provided locator.