Home How to save Captch using Selenium webdriver
Reply: 0

How to save Captch using Selenium webdriver

user793 Published in May 20, 2018, 10:08 am

I am use Selenium webdriver for auto filling. I want to save captcha and using OCR it will solve and give ocr input to text box. But each time I will save captcha but it will be changed.

link are given below www.vahan.nic.in


from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from urllib.request import urlopen
import urllib.request

driver = webdriver.Firefox()
img = driver.find_element_by_xpath('//td[@id="vehiclesearchstatus:j_id_jsp_1162919312_24"]/img')
src = img.get_attribute('src')

# download the image
urllib.request.urlretrieve(src, "ABcaptcha.png")
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.382422 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO