Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi,
Thanks for the project.
Judging by it, here is what happens in your test. During the test, you click the Edit this bank in ... link on the Banks tab, and a new tab, Setup/Modify Banks, appears. However, TestComplete doesn't catch this tab - it doesn't have enough time to fully recognize the new window on the screen. This situation, as well as the ways to avoid it, are described in the "Waiting for an Object, Process or Window Activation" article. I suggest that you read it.
To get your test executed, you can do the following in the editMasterBanks script unit:
instead of this line:
var bankLookup = Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.BankView.navigationLookup.lookupValueTextBox;
specify this:
Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.Refresh();
if (Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.WaitAliasChild("BankView", 5000).Exists)
bankLookup = Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.BankView.navigationLookup.lookupValueTextBox;
You may need to change the line where you obtain the bankTab variable by using the suggested approach.
Does this help?
Thanks for the project.
Judging by it, here is what happens in your test. During the test, you click the Edit this bank in ... link on the Banks tab, and a new tab, Setup/Modify Banks, appears. However, TestComplete doesn't catch this tab - it doesn't have enough time to fully recognize the new window on the screen. This situation, as well as the ways to avoid it, are described in the "Waiting for an Object, Process or Window Activation" article. I suggest that you read it.
To get your test executed, you can do the following in the editMasterBanks script unit:
instead of this line:
var bankLookup = Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.BankView.navigationLookup.lookupValueTextBox;
specify this:
Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.Refresh();
if (Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.WaitAliasChild("BankView", 5000).Exists)
bankLookup = Aliases.Caselle.ClarityConsole.MdiClient.ApplicationControlHost.BankView.navigationLookup.lookupValueTextBox;
You may need to change the line where you obtain the bankTab variable by using the suggested approach.
Does this help?