Key Method no longer working for Web Module
Currently we are testing Web Application with Web Module using TestComplete. I has a simple test case that login HeadOffice through login page.
Here is my script:
URL = "http://qa1-merch1/merchant/headoffice/test/login"
Call Browsers.Item(btChrome).Run
If Not Sys.WaitBrowser("chrome", 10000).Exists Then
Browsers.Item(btChrome).Run(URL)
Browsers.Refresh
Else
Browsers.Item(btChrome).Navigate(URL)
Browsers.Refresh
End If
Sys.Browser("chrome").BrowserWindow(0).Maximize
Set Browser = Sys.Browser("chrome")
Set Panelroot = Browser.Page(URL).Panel("container").Panel("root")
Set form = Panelroot.Panel(1).Panel(0).Form(0)
Set User = form.Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Textbox(0)
Call User.Keys("mgb")
Set Password = form.Panel(0).Panel(1).Panel(0).Panel(0).Panel(0).PasswordBox(0)
Call Password.Keys("wilko")
Set LoginButton = form.Button("loginSubmitButton")
Call LoginButton.ClickButton
Delay "10000"
Browser.Close
I am using Keys Method to enter user and password, it doesn't work anymore. I replace it with SetText, it works fine. So it seems Keys Method no longer works for our web application, but it works fine with Desktop module. Is there any reason, and how can fix it?