In addition to the standard CDP Functions, Browser API also provides some powerful custom CDP Functions.
Captcha.solve
Custom CDP commands for CAPTCHA status
Captcha.detected | Browser API has encountered a CAPTCHA and has begun to solve it |
Captcha.solveFinished | Browser API successfully solved the CAPTCHA |
Captcha.solveFailed | Browser API failed in solving the CAPTCHA |
Captcha.waitForSolve | Browser API waits for CAPTCHA solver to finish |
Captcha.setAutoSolve
Disable auto-solver for a specific CAPTCHA type only - Examples
Manually solving CAPTCHAs - Examples
CaptchaOptions for other Captcha types
Emulation.getSupportedDevices
Emulation.setDevice
landscape
after the device_name
.AdBlock
feature can help reduce bandwidth usage and improve performance on ad-heavy websites.
Unblocker.enableAdBlock
– Enables ad blocker (default: off)Unblocker.disableAdBlock
– Disables ad blockerProxy.useSession
– Associates a session with a specific session ID.sessionId
– A unique string that identifies your session.Download.enable
– Enables file downloads for specified content types.Download.downloadRequest
– Fires when request results in download.Download.getLastCompleted
– Retrieves information about the last completed download.Download.getDownloadedBody
– Gets the actual downloaded file content.Input.type
- Sends keystrokes or simulates typing the specified text into the currently focused element.Browser.addCertificate
Code examples
SBR_ZONE_FULL_USERNAME:SBR_ZONE_PASSWORD
with your valid Browser API credentials.
client.pfx
with the actual path to your certificate file. This file should be a valid SSL/TLS client certificate in .pfx format.
secret
with the actual password for the certificate.