Skip to main content

how to read CAPTCHA from QTP

Can we read Captcha images from QTP???
 Yes!!!!

Solution:
 
*** Need to Zoom the Application upto 400%(Worked for me) and try to execute the below code
 *** Captcha image should be visible on your desktop

shwnd = Browser("Browser Name").GetROProperty("hwnd")
mtxt =  Window("hwnd:=" & shwnd,"index:=0").GetVisibleText
Print mtx

Comments