How to change a tag that is already existing for a window ? Because i captured the window using "Window Declarations" and then when i change the tag and run the script silktest throws an error 'the window is not found'.
SilkTest identifies objects by their class and their tag in combination. So, for example, an HtmlText object with a caption of "Zip Code" may be declared in your declarations as follows:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">HtmlText lblZip
tag "Zip Code"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">In the above example, lblZip is the identifier, the way that you get to reference the object. When you try to act on such a thing, SilkTest looks it up, realizes you want to act on an HtmlText object that has a caption of "Zip Code" and then finds the object. If possible.
If you were to change the tag in your declarations to, say, "Postal Code" and the application hasn't changed, SilkTest won't be able to find it. Why not? Because there is no HtmlText object with a caption of "Postal Code" on your page.
Likewise, if the caption of the object has changed to "Postal Code", but you haven't changed the tag in your declarations, SilkTest won't be able to find it. Why not? Because, in our example, it's still looking for an HtmlText object with a caption of "Zip Code" and it ain't there.
Using the "Window Tags" item in the SilkTest Record Menu will allow you to get a modified tag for an objecct. If that MenuItem isn't there, see the Record Window Tags entry in the Help File.
A concerned Borland customer, a fly in the ointment, a wrench in the works.