I have an issue in clicking a link with Descriptive Programming.
I have writtent the below line to check whether the link exists.
blnChkLnkExists = Browser("x").Page("y").Link("innertext:= Workobject - Assigned To - Workbasket : Policy_creation_4_Eyes").Exists(5)
In the application, the innertext text of the expected link is "Workobject - Assigned To - Workbasket : Policy_creation_4_Eyes "..there is a single space after the word "..4_Eyes".
In my script , I expect the blnChkLnkExists to return a value "False" since there is a space for the innertext property of the link. But blnChkLnkExists returns a value True.
Can anybody tell me how to write the above line, so that it searches for the exact match of innertext.
I didn't know that we can use RegularExpression:=2 inside of the property list programattically. I don't use it because it appears that QTP defaults to using Regular Expressions inside of the dp code.