Hi Tom,
I am guessing here, to be honest. Just wondering whether there is a container page element that is slow to load, causing the occassional 'object not found' for the target object.
I understand that you are making use of Name Mapping and have tried WaitProperty.
I'm wondering whether a FindChild might help, if possible?
Set objObjectToStartFrom = objPage
arrProperty(0) = "ObjectType"
arrValue(0) = "Textbox"
arrProperty(1) = "ObjectIdentifier"
arrValue(1) = "TUserName"
intDepthOfSearch = 12
clkStopTime = GetTickCount() + 30000
Set objObjectToBeFound = objObjectToStartFrom.FindChild(arrProperty, arrValue, intDepthOfSearch)
Do While GetTickCount() < clkStopTime
If objObjectToBeFound.Exists Then
Log.Checkpoint "Object found: " & arrValue(0), "", pmNormal
Exit Do
End If
Set objObjectToBeFound = objObjectToStartFrom.FindChild(arrProperty, arrValue, intDepthOfSearch)
aqUtils.Delay(100)
Loop