How to verify text at specific location.
Thu Aug 13, 2009 4:15 pm
Hi,
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
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
- kunakavitha
- Posts : 4
Join date : 2009-08-19
VerifyText
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:
As per me the above steps should pass....but it is failing...help pls........
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........
- Jazz
- Posts : 9
Join date : 2009-07-30
Re: How to verify text at specific location.
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
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
Permissions in this forum:
You cannot reply to topics in this forum