Skip to content

Commit

Permalink
Add page source info in error when T2C fails test (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
TedaLIEz committed Feb 20, 2023
1 parent 87fc3a1 commit d4217c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public static void doAction(@NotNull BaseDriverController driver, @NotNull Actio
int index = actionInfo.getId();
logger.error("doAction at step " + index + "with exception: " + e.getMessage());
if (!isOption) {
throw new IllegalStateException("Failed at step " + index + ": " + e.getMessage(), e);
throw new IllegalStateException("Failed at step " + index + ": " + e.getMessage()
+ ", page source: \n" + driver.webDriver.getPageSource(), e);
}
}
}
Expand Down

0 comments on commit d4217c9

Please sign in to comment.