Or use VisualAssert (“image of something that appears on the page when the captcha is solved”)
https://ui.vision/rpa/docs/visual-ui-testing