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.