santoguya
15 years agoContributor
Generating a button click action for a third party plugin button/control
Hi,
I am using a Component One menu (which is a supported plugin according to TestComplete) which has several Component One Tabs and Buttons. When I record and click on the tabs and buttons, instead of recording a ClickButton action on a windows button, I get a Click action recorded with a mouse coordinate (x,y). I do not want to record a mouse location because the test could be running on different OS's with different resolutions so I am afraid the button wont always be pressed in the right spot.
Is there a way to script a clickbutton action for a third party button? I have successfully scripted a tab click by doing soemthing like:
Call Aliases.ComponentOneMenu.set_SelectedTabIndex(1) to go to the first tab
but I cannot find any actions (while recording) or function calls (in scripting) to click a button on the component one menu without creating a click mouse coordinate action.
Is this possible or is there another approach to this problem?
Thanks!
I am using a Component One menu (which is a supported plugin according to TestComplete) which has several Component One Tabs and Buttons. When I record and click on the tabs and buttons, instead of recording a ClickButton action on a windows button, I get a Click action recorded with a mouse coordinate (x,y). I do not want to record a mouse location because the test could be running on different OS's with different resolutions so I am afraid the button wont always be pressed in the right spot.
Is there a way to script a clickbutton action for a third party button? I have successfully scripted a tab click by doing soemthing like:
Call Aliases.ComponentOneMenu.set_SelectedTabIndex(1) to go to the first tab
but I cannot find any actions (while recording) or function calls (in scripting) to click a button on the component one menu without creating a click mouse coordinate action.
Is this possible or is there another approach to this problem?
Thanks!