Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

How to verify text at specific location. Empty How to verify text at specific location.

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
avatar
kunakavitha
Posts : 4
Join date : 2009-08-19

How to verify text at specific location. Empty 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:

  • [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
avatar
Jazz
Posts : 9
Join date : 2009-07-30

How to verify text at specific location. Empty 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
Sponsored content

How to verify text at specific location. Empty Re: How to verify text at specific location.

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