I am facing an inconsistent behavior when trying to populate value in a web textbox(WebEdit) using following
strDate = Day(now) & "/" & Month(now) & "/" & year(now)
Browser("").Page("").WebEdit("name:=viewns_7_.*._: genericPortletFormAdd:valueDate").Set strDate
Issue here is year part is sometime not coming as 2012, instead 012 or 201 at times (~ in 50% of test runs).
I am using QTP 9.5.
Please suggest if someone has encountered the same issue and found a way out of this problem.
Change the replay type and try, put wait time before enter the value.
i have never seen bugs sleeping