patrol icon indicating copy to clipboard operation
patrol copied to clipboard

[docs] The "Ignoring Exceptions" section in the "Tips & Tricks" page has a mistake

Open ReubenTurner-esusu opened this issue 1 year ago • 1 comments

There is a snippet on this page that reads:

var exceptionCount = 0;
dynamic exception = $.tester.takeException();
while (exception != null) {
  exceptionCount++;
  exception = $.tester.takeException();
}
if (exceptionCount != 0) {
  $.log('Warning: $exceptionCount exceptions were ignored');
}

However, the PatrolTester and PatrolIntegrationTester classes do not have a log method.

ReubenTurner-esusu avatar Jul 24 '24 16:07 ReubenTurner-esusu

Ah, thanks. There should be print() instead

fylyppo avatar Jul 24 '24 21:07 fylyppo

This method exists now, closing

jBorkowska avatar Jun 26 '25 14:06 jBorkowska

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

github-actions[bot] avatar Jul 03 '25 15:07 github-actions[bot]