I have created a WB custom button using the methodology mentioned on another SO post: Custom Button WB
Now, I would like to automate clicking on this button, in my process workflow. How do I do it?
This can be done by calling the event callback directly. The Custom button is attached to a Toolbar on WB as toolbar Entries. So, first accessing the toolbar and then it's entry will provide access to the Click event callback.
Toolbar
Entries
Click
Example:
custom_button_ext = ExtAPI.ExtensionManager.GetExtensionByName("CustomButtonWB") toolbar = custom_button_ext.Interface.Toolbars[0] button = toolbar.Entries[0] button.Click()