Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Yesterday at 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to get text from captcha image.

View previous topic View next topic Go down

How to get text from captcha image.

Post by Adviser on Fri Aug 21, 2009 3:32 pm

Some sites used captcha images to get registration process done. How can we type that text from selenium?
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: How to get text from captcha image.

Post by Adviser on Fri Aug 21, 2009 3:40 pm

Hi,

The main motive of captcha image is to free from spam message. It 's main idea is to generate the unquie character from same URL.

You can't get text of image even from programming also. It is type only through manually, there is no other options availiable.

The possible things you can do from it are as follows:

1. Verify the image is present or not by its name or id.
2. Verify href/Url of that image.

I hope you will get an idea about this "captcha" object. Best Of Luck.

Bye
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: How to get text from captcha image.

Post by Adviser on Tue Sep 15, 2009 10:58 am

hi,

to get URL of the captcha image , use the following command


  • [info] Executing: |storeAttribute | locator/IdOfCaptcha@src | variable|
  • [info] Executing: |type | locator| ${variable} |
bye
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: How to get text from captcha image.

Post by sillybrian on Tue Sep 15, 2009 12:16 pm

The problem that i have is when I do a get_attribute it errors telling me Could not find element attribute:....

I would think I need to read the attribute of //img

I am working with ruby to use selenium. Here is what the inspect shows on the elements.












sillybrian

Posts : 1
Join date : 2009-09-15

Back to top Go down

Re: How to get text from captcha image.

Post by Adviser on Tue Sep 15, 2009 12:20 pm

Hi,

I think the problem is regarding synchronizing, the image is still loading and you try to fetch its attribute. If this is condition, wait for page to load fully.

If not, The above error message will show you how to cilcon refresh link which made image to load again. try to click on that link or refesh page, then you fetch its attribute.

Then also the image is not appearing, then may be some problem with your image.

try this and let me know. Best of luck.

bye
avatar
Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: How to get text from captcha image.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum