Programmatic GUI control (pressing buttons, etc.)
Posted: Fri Dec 08, 2023 1:25 pm
I have a fairly complex and fluid HOC wrapper around NEURON with a bunch of dynamic windows, menus, radio buttons, values, etc. I need to be able to automatically test that the wrapper operates correctly and output results match correct/expected values. And test this for a variety of menu choices and test input parameters.
Simulating selections for {xmenu, xpanel, xradiobutton, xcheckbox} (e.g. by choosing the menu "option1" or "option2") and keyboard inputs for {xvalue, xpvalue} via a Python script would seem optimal. But AFAICS there is no built-in mechanism to programmatically control NEURON GUI. I tried using external tools like AutoIt but, unfortunately, it is unable to see any NEURON GUI objects apart from the top-level GUI windows.
Any ideas about how to programmatically control NEURON GUI widgets would be appreciated.
Simulating selections for {xmenu, xpanel, xradiobutton, xcheckbox} (e.g. by choosing the menu "option1" or "option2") and keyboard inputs for {xvalue, xpvalue} via a Python script would seem optimal. But AFAICS there is no built-in mechanism to programmatically control NEURON GUI. I tried using external tools like AutoIt but, unfortunately, it is unable to see any NEURON GUI objects apart from the top-level GUI windows.
Any ideas about how to programmatically control NEURON GUI widgets would be appreciated.