I need help I am trying to do select multiple items on a treeview using Window.TreeView.SelectList (lsItems) but it doesn't work, I get the error below.
[ ] *** Error: Window type mismatch - Expecting an extend selection or multiple selection treeview
I also tried the MultiSelect but that didn't work either I get the same error. How can I tell whether the treeview in my AUT is supported by these methods but from the looks of it so far, it's not supported. Are there any workarounds that anyone can suggest?
Now, I've got another problem... If I wish to select a multiple range of objects, now the last times not in in the view. How do I go about this? I tried ExposeItem(), ScrollIntoVie() but didn't work... Any ideas... THanks again!
Select should automatically expose the item. You could do a Window.TypeKeys("<Down x>"), where 'x' is the number of times to scroll down, to scroll to the unexposed item. The trick is to figure out how many times to scroll down. Or you could do Window.TreeView.VScrollBar.ScrollByPage(iAmount), again need to figure out the value of iAmount.