hValentina
14 years agoNew Contributor
Custom-build visual components
Hello. I'm using trial version of your product - TestComplete 8.5.
I have faced with some issues.
UI of your application uses custom-build visual components - similar to context menues and toolbars. Their child elements - button and menu items - are objects of classes, derived from System.ComponentModel.Component, so they are not Windows or Controls and I can't find them in ObjectBrowser.
I need to emulate user actions with this elements (button clicking, working with menu items etc.)
I use follow script:
' Get chilld element
set showForm=Aliases.TestQA.mainForm.customMenuBar.Items.get_Item(0)
' Method PerformClick shows form customForm.
Call showForm.PerformClick()
' Then I try fill form's fields.
Aliases.TestQA.CustomForm.tbInfo.SetText("123")
But this form blocks script execution, and scrip couldn't fill form's fields(script continues to work only after I close form customForm).
How can I process this form?
I have faced with some issues.
UI of your application uses custom-build visual components - similar to context menues and toolbars. Their child elements - button and menu items - are objects of classes, derived from System.ComponentModel.Component, so they are not Windows or Controls and I can't find them in ObjectBrowser.
I need to emulate user actions with this elements (button clicking, working with menu items etc.)
I use follow script:
' Get chilld element
set showForm=Aliases.TestQA.mainForm.customMenuBar.Items.get_Item(0)
' Method PerformClick shows form customForm.
Call showForm.PerformClick()
' Then I try fill form's fields.
Aliases.TestQA.CustomForm.tbInfo.SetText("123")
But this form blocks script execution, and scrip couldn't fill form's fields(script continues to work only after I close form customForm).
How can I process this form?