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.