Forum Discussion
chrisb
11 years agoRegular Contributor
I think you may have cut and paste the variable name dtpCurrentDate. So you are not actually getting the date value back from the date picker function because you are passing 'dtpCurren?Date' instead of 'dtpCurrentDate'.
Delete this variable in the Test Complete IDE, re-type it and try again.
Also you may want to consider putting a counter in your loop so that after n number of times it returns rather than getting stuck in the loop if your value is not found. You test will run forever if the value isn't found which I assume is a possibility if you are testing it.