How to take a screenshot upon failure on the Java App - Using Sikuli

  • Hey guys, right now I’m automating a script but not for Web-UI or Mobile but rather a Java App
  • There is a default options to take a screenshot upon failure but it’s only for Web-UI and Mobile
  • Is there a way to modify the FailureHandling.STOP_ON_FAILURE to include WebUI.takeScreenshot() ?

Hi,

WebUI.takeScreenshot() is a feature of Web-UI testing. Do you mean to test Java App with WebUI? If not, I do not think it is possible.

1 Like