beforeCaptureScreenshot property
Sets a callback which is executed before capturing screenshots. Only
relevant if attachScreenshot is set to true. When false is returned
from the function, no screenshot will be attached.
Implementation
BeforeCaptureCallback? beforeCaptureScreenshot;