public static void sikuliAssertElementPresent(LiferaySelenium liferaySelenium, String image) throws Exception { ScreenRegion screenRegion = new DesktopScreenRegion(); ImageTarget imageTarget = getImageTarget(liferaySelenium, image); screenRegion = screenRegion.wait(imageTarget, 5000); if (screenRegion == null) { throw new Exception("Element is not present"); } Canvas canvas = new DesktopCanvas(); ElementAdder elementAdder = canvas.add(); ElementAreaSetter elementAreaSetter = elementAdder.box(); elementAreaSetter.around(screenRegion); canvas.display(2); }