Rank: Newbie Groups: Member
Joined: 12/9/2014 Posts: 2
|
how to capture image of webbrowser captcha using Eo.webbrowser and show that captcha in our picturebox
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
|
Rank: Newbie Groups: Member
Joined: 12/9/2014 Posts: 2
|
but i dont wanna capture entire screen web page i only want to capture that captcha image on web page . is it is possible . then will you kindly share the sample code..
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
You can not capture the captcha image directly. EO.WebBrowser renders a page and whatever capture you do comes from the screen buffer, which means if the area you wish to capture is not in the current viewport, then you will not be able to capture it. In your case, you can use JavaScript to find out the location of the captcha image, then scroll the page to the location to make sure it is in the current viewport, then use one of the Capture method to capture it. However it might be easier if you just get the captcha Url and then do a direct download to get the captcha image file.
Thanks!
|