Reputation: 87
I'm unable to click on tree view, please see snap:
For this I am using this code
evidence_treeview = context.new_evidence_window[u'TreeView']
time.sleep(2)
evidence_treeview.get_item([u'Evidence'], False).click()
Upvotes: 0
Views: 1371
Reputation: 9990
It's not clear what is context
variable? Is it WindowSpecification
object? If yes, this is incorrect for "win32" backend, because it doesn't support more than 2 levels of window specifications (you requested 3 levels). By the way UIA backend supports 3+ levels, but TreeViewWrapper has different implementation there.
I suspect this code should work (but I'n not 100% sure without previous lines):
evidence_treeview = context[u'TreeView']
time.sleep(2)
evidence_treeview.get_item([u'Evidence'], False).click()
Upvotes: 1