Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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.

Byee

Adviser
------------------------
------------------------

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

http://seleniumforum.forumotion.net

Back to top Go down

VerifyText

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 VerifyText...how 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 ..

Ex:

  • [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 failing...help pls........ Shocked

kunakavitha

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

hi,

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.

Bye

Jazz

Posts : 9
Join date : 2009-07-30

Back to top Go down

Re: How to verify text at specific location.

Post by Sponsored content Today at 6:32 pm


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