CDPotion.Domain.Audits (cdpotion v0.1.0)
Summary
Functions
Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
Disables issues domain, prevents further issues from being reported to the client.
Enables issues domain, sends the issues collected so far to the client by means of the
issueAdded
event.
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Functions
check_contrast(report_aaa \\ nil)
Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
Parameters:
reportAAA:boolean
: (Optional) Whether to report WCAG AAA level issues. Default is false.
check_forms_issues()
Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
disable()
Disables issues domain, prevents further issues from being reported to the client.
enable()
Enables issues domain, sends the issues collected so far to the client by means of the
issueAdded
event.
get_encoded_response(request_id, encoding, quality \\ nil, size_only \\ nil)
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
Parameters:
requestId:Network.RequestId
: Identifier of the network request to get content for.encoding:string
: The encoding to use.quality:number
: (Optional) The quality of the encoding (0-1). (defaults to 1)sizeOnly:boolean
: (Optional) Whether to only return the size information (defaults to false).