automate the captcha and barcode

Types of Automation Frameworks, Data Driven Framework, Keyword Driven Framework, Hybrid Framework, Components of Automation Framework, and Automation Framework Design & Implementation.
Post Reply
sekhar
Posts: 42
Joined: Mon Dec 31, 2018 6:40 am

automate the captcha and barcode

Post by sekhar » Sat Jan 05, 2019 7:18 am

How to automate the captcha and barcode?

kishore
Posts: 55
Joined: Thu Jan 03, 2019 3:57 am

Re: automate the captcha and barcode

Post by kishore » Tue Jan 08, 2019 11:52 am

We can't automate captacha but can Handle those scenario:
1. enter username
2. enter captcha in console manually
3. enter password

driver.findElement(By.id("username")).sendKeys("username");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String captcha;
System.out.println("Please Enter the CAPTCHA Code:: ");
captcha = br.readLine();
System.out.println("Entered CAPTCHA Code is:: "+captcha);
driver.findElement(By.id("password")).sendKeys("password");

Post Reply

Return to “Selenium Automation Framework”