How to pass Assertions in Geb framework ?
Hi Yanisleidi!
In order to pass Assertions using Geb framework, you can use the below code snippet for the same.
try {
// some GET request
Assert.assertEquals(ActualValue, ExpectedValue);
} catch (AssertionError e) {
Status = "failed";
exceptionCapture.add(e.getMessage());
((JavascriptExecutor) driver).executeScript("lambda-exceptions", exceptionCapture);
}