Thanks guys
Test Complete can launch the website, and enter user name and password correctly, but the script fails and stops at the clicking login button with the following error:
form.submitbuttonLogin.ClickButton();
"There was an attempt to perform an action at point (41,31) which is invisible or out of the window bounds"
I can see that there is a message 'waiting until the overlapped window become visible' showing on the top right corner when running the script.
I dont think it is related to the timing issue as I add the breakpoint on the clicking button line and then the script still fails.
Script
=====
function Test2()
{
var page;
var form;
var textbox;
TestedApps.WebApp1.Run();
page = Aliases.browser.pageSupportSmartbearComSamplesTe;
form = page.formAspnetform;
textbox = form.textboxMaincontentUsername;
textbox.SetText("Tester");
form.passwordboxMaincontentPassword.SetText("test");
form.submitbuttonLogin.ClickButton(); <<--- script stops here
page.Wait();
page.formAspnetform.linkLogout.Click();
page.Wait();
}