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.

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.