04-10-2008, 07:25 PM
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",strInsuranceName
Code:
SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#[0-9]",strInsuranceName
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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course