IWindowActionsListener
Implementationâ
In order inject your customized logging for your reports or you want to perform any other action when handling the screen window related actions, you can implement this class and provide your implementations for different methods available in this listener interface.
onCloseâ
This method will get executed after closing the window.
onCurrentHandleâ
This method will get executed after getting the current window handle.
onFullScreenâ
This method will get executed after making the window full screen.
onGetScreenshotâ
This method will get executed after getting the screenshot content.
onGetTitleâ
This method will get executed after getting the current window title.
onHandlesâ
This method will get executed after getting all the window handles.
onMaximizeâ
This method will get executed after maximizing the window.
onMinimizeâ
This method will get executed after minimizing the window.
onSwitchTo (nameOfHandle)â
This method will get executed after switching to the window by its name or handle.
onSwitchToDefaultâ
This method will get executed after switching to the default main window.
onSwitchToNew (windowType)â
This method will get executed after switching to the new window for the given type.
onTakeScreenshot (fileName)â
This method will get executed after taking the screenshot with its file name.
onVerifyTitleâ
This method will get executed after verifying the window title.
onViewportSizeâ
This method will get executed after getting the viewport size.