In that case simply changing
to
should solve the problem.
You have to make sure that there is only one unique link on a given page which satisfies this reg expression.
Let us know how it goes.
Code:
SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#1",strInsuranceNameCode:
SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#[0-9]",strInsuranceNameshould solve the problem.
You have to make sure that there is only one unique link on a given page which satisfies this reg expression.
Let us know how it goes.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course

