Hello all,

I am currently automating my system at work and have come across a slight problem recording my test.

I have completed all my script for the specific test, however i am having the following problem:

When testing around adding new policies into our system, to edit the general information of the policy cover one must click on each cover individually in a 'Tree-type' view.

When recording this piece of test the following line of code is recorded:

VbWindow("MDIMain").VbWindow("frmPol_[0-9]+").ActiveX("ItemControl.ItemCtrl").VbTreeView("trvItem").Select "09/04/2008 [ PENDING ] - Inception -- Documents Outstanding --;WN General Information"

My problem is with the date after select, this is the current system date and obviously updates everyday, thus causing QTP to stop when it encounters this.

Is there a way to automate this so that Qtp can possibly recognize a range of dates on that line?

any help would be greatly appreciated.

Regards James.