Does anyone know of a method to identify Selenium commands in order to automatically add a screenshot command after each one? I prefer to use Javascript because I am working with HTML test scripts. For example:
clickandwait | element |
<-- Is there a way in Javascript to detect when this is executed so I can include
captureentirepagescreenshot | c:\screenshots.jpg |
afterwards.