I have code that screenshot should be saved on failed step. but before that only screenshot is getting captured. In my case. it is being captured while loading of login functionality.
but it should captured when particular web element is not getting found after login functionality