Work with C++ std::vector
- 6 years ago
Hi,
a) What controls your applications is using and was the application prepared as per requirements: https://support.smartbear.com/testcomplete/docs/app-testing/desktop/visual-c/index.html ?
As I said, the basic approach with TestComplete tests is to emulate the human end-user and in general you should be able to do something like this:
var caption = 'Save';
var button = Sys.Process(<testedProcess>).Form(<testedForm).FindChild(['ObjectType', 'wCaption'], ['button', caption], 20);
if (button.Exists)
button.Click();
else
<Handle button absence>;
b) JavaScript as any Java is a thing of its own and may require some coding specifics: https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript.html and https://support.smartbear.com/testcomplete/docs/scripting/specifics/jscript.html