QTP is not identifying the object while executing the script.
But it does when execution is not going on.
Noted thing here is when Cannot Identify the object error is thrown by QTP, I select Debug in error window.
In the debug stage when i open the object repository and highlight the object in question, it is getting highlighted.
And then if i continue the execution it starts to progress.
Note : I have also tried to click on retry button but it doesn't solve the problem. Only opening the OR and highlighting the object and then if i continue execution it works.
To verify if it is a sync issue as the guys say, try waiting an increasing number of seconds and clicking retry see if this works. If it does then its a sync issue and you should follow the instructions from Chikki regarding an Exist statement.
Yes I tried to do this using the Exist Method.
By using Exist the step was executed successfully for DelphiTable.RowCount.
But the next step where i am trying to Click on a DelphiButton, it gives the error.
If ObjCloseButton.Exists Then
"Statement contains one or more invalid function argument"
when it reaches ObjCloseButton.Click
I also tried using
If objWindow.Exist(5) Then
objWindow.Click '-- "Same error,Statement contains one or more invalid function argument "
objWindow.Close ' -- "Unspecified error"