03-06-2014, 12:52 AM
Hi,
With checkpoint you can capture a existing text and make sure every time when you run same text exists or not. To Insert a check point
1. Click on Record
2. Insert-->CheckPoint-->Text checkpoint
3. Click on text which you want to capture.
This text will be stored in Object repoitory and next time when you run the script it will check that text exist or not.
But This will not help you to get run time text.
If you want to use captured text for comparison you need to use GetROPRoperty.
ex:
With checkpoint you can capture a existing text and make sure every time when you run same text exists or not. To Insert a check point
1. Click on Record
2. Insert-->CheckPoint-->Text checkpoint
3. Click on text which you want to capture.
This text will be stored in Object repoitory and next time when you run the script it will check that text exist or not.
But This will not help you to get run time text.
If you want to use captured text for comparison you need to use GetROPRoperty.
ex:
Code:
CompareText = Browser(”browser_name”).PAGE(pagename").GetROProperty(”hwnd”)