err_text=f"Warning, browser step at position {error_step} could not run, target not found, check the watch, add a delay if necessary, view Browser Steps to see screenshot at that step"
# Generally enough info for TimeoutError (couldnt locate the element after default seconds)
err_text=f"Browser step at position {error_step} could not run, check the watch, add a delay if necessary, view Browser Steps to see screenshot at that step."
ife.original_e.name=="TimeoutError":
# Just the first line is enough, the rest is the stack trace
err_text+=" Could not find the target."
else:
# Other Error, more info is good.
err_text+=""+str(e.original_e).splitlines()[0]
print(f"BrowserSteps exception at step {error_step}",str(e.original_e))