How to read the text at image box during creating new google account with WebDriver using java -


how read text in image box while creating new google account using webdriver in java. creating new gmail account using webdriver in java. not able read text present in image box. can me on issue?

the code have used is:

driver = new internetexplorerdriver(); driver.get("http://gmail.com"); thread.sleep(10000); driver.findelement(by.id("link-signup")).click(); thread.sleep(10000); driver.findelement(by.id("firstname")).sendkeys("swamy"); driver.findelement(by.id("lastname")).sendkeys("kumar"); driver.findelement(by.id("gmailaddress")).sendkeys("skumar081112"); driver.findelement(by.id("passwd")).sendkeys("swamy@123"); driver.findelement(by.id("passwdagain")).sendkeys("swamy@123"); driver.findelement(by.xpath("//label[@id='month-label']/span/div                          /div")).sendkeys("november"); driver.findelement(by.id("birthday")).sendkeys("16"); driver.findelement(by.id("birthyear")).sendkeys("1978"); driver.findelement(by.xpath("//div[@id='gender']/div/div")).sendkeys("male"); driver.findelement(by.id("recoveryphonenumber")).sendkeys("9000000000"); driver.findelement(by.id("recoveryemailaddress")).sendkeys("abc@gmail.com"); driver.findelement(by.id("homepageset")).click(); string imgmsg = driver.findelements(by.xpath("//div[@id='recaptcha_image']                  /img")).tostring(); system.out.println(imgmsg); 

help appreciated...

you can't

that text called captcha designed stop automated systems creating accounts (and doing pretty job).

a captcha (pron.: /ˈkæp.tʃə/) type of challenge-response test used in computing attempt ensure response generated human being. process involves computer asking user complete simple test computer able grade. these tests designed easy computer generate difficult computer solve, again easy human. if correct solution received, can presumed have been entered human. common type of captcha requires user type letters and/or digits distorted image appears on screen. such tests commonly used prevent unwanted internet bots accessing websites, since normal human can read captcha, while bot cannot process image letters , therefore, cannot answer properly, or @ all. although captchas letter pictures randomly generated, many of them have become difficult human read , picture captchas created in human shown simple test show picture of animal (given few animal pictures), simple human being process, , therefore easy pick, while bot cannot process , solve question because although can analyze picture, cannot guess animal. term "captcha" coined in 2000 luis von ahn, manuel blum, nicholas j. hopper, , john langford (all of carnegie mellon university). acronym based on word "capture" , standing "completely automated public turing test tell computers , humans apart". carnegie mellon university attempted trademark term on 15 october 2004,1 trademark application abandoned on 21 april 2008.[2] captcha described reverse turing test, because administered machine , targeted @ human, in contrast standard turing test typically administered human , targeted @ machine.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -