Display results as :

Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c


How to verify text at specific location.

View previous topic View next topic Go down

How to verify text at specific location.

Post by Adviser on Thu Aug 13, 2009 4:15 pm

Hi, Very Happy

Verify test is most important aspect of any testing. But sometimes we have to want verify text at specific location not in whole page. For this use following command:

storeText | Location of your text | variable name

Now you have got the text value at specified location and you will easily comapre both values which you have and one which you get at runtime.

I hope this will help you. best of luck.



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

Back to top Go down


Post by kunakavitha on Wed Aug 19, 2009 3:29 pm

HI ,
I am very new to selenium and not did automation...

I need help on using the to use it ...
i checked the doc also it says that the result will show as false as selenium is correct.(Page 33).

but how do i make my test pass when Expected pattern and Actual pattern are same ..


  • [info] Executing: |type | txt_username | saritha |
  • [info] Executing: |type | txt_password | saritha |
  • [info] Executing: |verifyText | btnSubmit | Your Account is Inactive.. Please contact System Administrator. |
  • [error] Actual value '' did not match 'Your Account is Inactive.. Please contact System Administrator.'
  • [info] Executing: |click | btnSubmit | |

As per me the above steps should pass....but it is pls........ Shocked


Posts : 4
Join date : 2009-08-19

Back to top Go down

Re: How to verify text at specific location.

Post by Jazz on Wed Aug 19, 2009 3:38 pm


I think you are not clicking on the button submit and you are verifying text before it is appearing on the screen.

Just add command click|btnSubmit before verify text.

At that time text is not appearing on the screen. You will have to plcae wait also to handle synchronisation, if any persist. Place verifytext command last after click command.

Hope this will help you.



Posts : 9
Join date : 2009-07-30

Back to top Go down

Re: How to verify text at specific location.

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