title: Expanding tree node in QTP
body: <p>I am trying to expand a tree node in an application using HP UFT.
  I tried using <code>Swfwindow("Windowname").SwfTreeView("Treename").Expand "nodename"</code></p>
  
  <p>I tried sending keyboard buttons via script : rightarrow, leftarrow, +, -, *</p>
  
  <p>But it is of no use. The application does not allow to expand the tree.</p>
  
  <p>The tree structure is like : <code>(+)treeName</code></p>
  
  <p>So working around, I manually expanded and collapsed the tree, then tried running the script, it seem to worked.
  So this suggests the tree does not expand using the script, but if I manually expand and close and then try the script, it works fine.</p>
  
  <p>Could you suggest if I can handle this kind of application build in QTP?</p>