Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Automation: Selecting menu item and/or sub-menu items from another application

$
0
0

I am working on a automation testing project. I want to create a command which will simulate a "select menu item" behavior. This should select a menu item from another application's window.

List of such commands is like a automation script to me [when replayed, all the commands execute in sequence]

For example, list of commands will be like:

1. Run a program [Start Process command]

2. Select a file menu [Click Mouse command]

3. Select File->menu item [Command yet to be written]

4. Select File->menu item->sub menu item [Command yet to be written]

I already have "Click Mouse" command. In this command configuration, I have a control locator by which I can locate the menu from another application. After locating that menu, it saves control information of that menu which will be helpful when script is replayed. [Which will automatically select menu]

However, I can not select menu items and/or sub menu items using control locator of "Click Mouse" command. 

So, is there a way [maybe using windows API, I am not sure], to save the information of submenu items, and select that menu item while replaying the script.

Thank you in advance!


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>