How can i use OCR in Selenium config



  • How can i use ocr in selenium ?
    I made a ocr block and put captcha link , when i start config , other blocks works successfully but ocr block shows this error :

    Exception has been thrown by the target of an invocation.

    This is my config :

    BROWSERACTION Open

    NAVIGATE "https://xip.li/j5oHy0"

    #wait_12_sec FUNCTION Delay "12000" -> VAR "wait"

    OCR "https://xip.li/captcha" -> VAR "captcha_code" eng

    HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
    HEADER "Pragma: no-cache"
    HEADER "Accept: /"

    ELEMENTACTION Name "captcha_code"
    Click

    ELEMENTACTION Name "captcha_code"
    SendKeysHuman "<captcha_code>"

    If you know, please give me an example.


  • Admin

    There is no OCR block on official OB as of yet, and hence it's not supported on this forum



  • @Ruri So how do I solve image captcha in selenium ?


  • Admin

    You take a screenshot as base64 and you use the solvecaptcha block