0
votes

I am trying to Automate one application to export data. To export, you need to SELECT individual item from the list, Right Click and select Export (from multiple options). So far I am able to select and right click on the Item to show the Context menu, but not able to select options under that. How can I get reference for that Context menu and select an item under that.

I am using Python 3.7 and Latest pywinauto library

 syslistview = app.List1

 imageListCount = syslistview.item_count()

 for x in range(0, imageListCount):

      listview_item = syslistview.get_item(x)

      listview_item.click_input(button='right')

I can get it to open the context menu, But can not select and click on Export

1

1 Answers

0
votes

look at the answer below if the control is contextmenu.

How to select a sub menu from a context menu?