I'm not sure I completely understand your question. If you are trying to traverse 20 links to see which of them contains the word "Silk", then use the "GetText" method on each link to get it's text. You can then use the "MatchStr" to search for a pattern in a string. Does that help?
Use GetChildren() then, recursively if necessary (depends on whether or not your page's DOM object is flattened by SilkTest). Are you saying that you are scraping data from the Excel screen? Couldn't you use a call into Excel instead? (I don't really know, I use mysql).
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
I'm with Chris. I've always used GetChildren on the parent window and then cycled through the windows. You'd want something like:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">list of window winList = parentWin.getChildren()
for each win in winList
if (classOf(window) == HtmlLink)
if (matchStr("*silk*", window.getText()))
... then do something...
// end for</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Regards,
This is Surbhi from Ca, USA. I saw that you are in Delhi and working on QA. I am also a QA person. I need one help. I have one friend in india, Gujarat. H e is an engineering student and he wants to know about QA and from where to learn? If you dont mind could you please give me your email than i will pass it to him. You can also email to me on email@example.com.