Open willowypanda opened 3 months ago
Sure! You can add an event handler to check and resolve captchas:
Here is a simple demo:
fun options(args: String): LoadOptions {
val options = session.options(args)
val be = options.event.browseEventHandlers
be.onDocumentActuallyReady.addLast { page, driver ->
// Check if the page shows captchas here
// If the captcha appears, call 2Captcha
}
return options
}
val url = "https://www.amazon.com/dp/B0C1H26C46"
val args = "-refresh"
session.load(url, options(args))
For all available event handlers, see:
If so, how can I do it in PulsarRPA? Thanks!