How did you added the objects.
I doubt the heirarchy is not proper, I have never seen one dialog under a dialog.
also, I cant see the naiveclass property for FileName, are you able to highlight the control in your application?
Can you check if the below statement works?
if No then please try again adding object into OR. I beleive the 'Save As' dialog should be different Node.
Ex: Refer Snap of OR and the code should be like
yes Saket you mentioned line is perfectly working without this
Code:
Dialog("Save As").WinEdit("FileName").Set "C:\"
can you guide me to set OR properties for new WinEdit object ?
the error is
[color]Cannot identify the object "FileName" (of class WinEdit). Verify that this object's properties match an object currently displayed in your application.[/color]
Yes I think so, delete the object from OR and add it again.
does your save as dialog is same as in snap below? I guess Yes, then add the highlighted object.
Hi Neetika, always create a new thread for the new query instead diverting athread.
for answer to your question - WinEdit("text:=File &name:"). in your statement is causing the issue. by default qtp treats all program description as regular expression. and so it does the same for File &Name. there could be two solutions for this 1. use regular expression like text:=File \&name:" 2. use description.create and put value as "File &Name"
dont use text to identify a winedit object instead use nativeclass/class and index.