i m doing Ailk automation for a product.
there is one standard TreeView control.
while working on it Silk raises error "TreeView is not Active"
sometimes it works fine but sometime fails.
i have done all the required settings like Setting silk Agent options and all.
but it is not working 100%.
do i need to set any other environment while handling TreeView control in silk?
These are a few things you could try:
Before doing any actions on the treeview:
1. Have a statement to activate the parent dialog/window.
2. Try a SetFocus() on treeview.
3. Try Treeview.Click(1, x, y) on it. Typically there would be some whitespace/background on the treeview which would not change anything if clicked on it. so the x and y co-ordinates above must be dynamically and mathematically calculated to ensure such a spot.
4. if Nothing works, capture the current state of agent option OPT_VERIFY_ACTIVE, set it to false, do ur stuff with the treeview, set the agent option back to what it was.