Captcha which could be automated.

1- Captcha which could be automated-This is the example from-

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class CaptchaAutomated {
    public static void main(String[] args) {
        WebDriver driver = new FirefoxDriver();
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        String captchaValue = driver.findElement(By.xpath(“//span[@id=’txtCaptchaDiv’]”)).getText();  //this will read the captcha

Output-This program will read the captcha and will enter the value of captcha in the Enter Captcha box.

2- Captcha which could not be automated-

This is an example from –
Such kind of captcha can not be automated.