Micro Focus QTP (UFT) Forums
Custom CheckPoint - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Custom CheckPoint (/Thread-Custom-CheckPoint)



Custom CheckPoint - rajrkodeep - 09-06-2012

Hi,
In my app,on Click of save if the mandatory field does not contain value its background color becomes red.Now i want to verify the color of WebEdit is red or not using Checkpoint. Any idea how to do that?
IF i use standard checkpoint the statement looks like
Code:
Browser.Page.Frame.WebEdit("Age").Check Checkpoint("CheckpointName")
Here Checkpoint properties are passed to method Check so can i pass any backgroundcolor properties? I am not able to access any native properties here or even using gettoproperties.
I tried CheckProperty too but of no use.
I do not want to use
Code:
If Webedit.Object.Currentstyle.Background color=Value then
Reporter.Reportevent micPass
But i want to compare with WebEdit.Object.backgroundcolor stored in OR while recording or I wanna compare it with OR value and then decide wheather to pass or fail.
Can anyone help in this?Can i add my own custom properties?