Display results as :

Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Tue Nov 21, 2017 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


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