Forum Discussion
lichtmannls
15 years agoNew Contributor
Unfortunately, it will be impossible to provide direct access to the application. The value of outerHTML for one specific offending text box is:
<INPUT style="BACKGROUND-COLOR: #ffffff; VISIBILITY: visible" class=assets-form-combo-medium maxLength=40>
or, after typing in manually the text which the TestComplete recording fails to capture:
<INPUT style="BACKGROUND-COLOR: #ffffff; VISIBILITY: visible" class=assets-form-combo-medium value=MICROWAVE maxLength=40>
Converting a recorded keyword test to script:
function Test9()
{
TestedApps.iexplore.Run(1, true);
Aliases.iexplore1.ToURL("http://192.168.1.222/");
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table.cell.table.cell.textboxLoginlogin.Click(31, 16);
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table.cell.table.cell.textboxLoginlogin.Text = "LLICHTMANN";
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table.cell1.passwordboxLoginpsswd.Text = "xxxx";
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table1.cell.buttonLoginsubmit.Click();
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelLayoutContent.panel.panel.panelJobs2Content.panelJobsTabbar.panelLayoutTabBar.panelLayoutTabs.textnodeMytabs1Item7BoxText.Click(0, 8);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelLayoutContent.panel.panel.panelJobs2Content.panelLayoutContent.panel.panel.panel.panelAssets2Navigator.table.cell.table.cell.imageFindasset.Click(14, 17);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.Wait();
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Click(73, 8);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Click(44, 9);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Text = "";
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell1.table.cell.panel.textnodeAw213BoxText.Click(14, 8);
}
Manually correcting the text setting step to:
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Text
= "MICROWAVE";
and running the test results in the following Warning:
<The editor cannot contain more than 0 symbols.
The text 'MICROWAVE' has been truncated to ''.
Sys.Process("iexplore", 3).Page("http://192.168.1.222/private/mcms/start.php?width=1812").Panel("JFSY_dialog_36").Table(0).Cell(1, 0).Table(0).Cell(3, 0).Table(0).Cell(1, 5).Textbox(0)>
Note that in spite of the maxLength setting of 40, TestComplete is unable to record or set a non-empty string in the text box.
<INPUT style="BACKGROUND-COLOR: #ffffff; VISIBILITY: visible" class=assets-form-combo-medium maxLength=40>
or, after typing in manually the text which the TestComplete recording fails to capture:
<INPUT style="BACKGROUND-COLOR: #ffffff; VISIBILITY: visible" class=assets-form-combo-medium value=MICROWAVE maxLength=40>
Converting a recorded keyword test to script:
function Test9()
{
TestedApps.iexplore.Run(1, true);
Aliases.iexplore1.ToURL("http://192.168.1.222/");
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table.cell.table.cell.textboxLoginlogin.Click(31, 16);
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table.cell.table.cell.textboxLoginlogin.Text = "LLICHTMANN";
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table.cell1.passwordboxLoginpsswd.Text = "xxxx";
Aliases.iexplore.pageLogin.tableLogin.cell.panelLogindiv.table1.cell.buttonLoginsubmit.Click();
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelLayoutContent.panel.panel.panelJobs2Content.panelJobsTabbar.panelLayoutTabBar.panelLayoutTabs.textnodeMytabs1Item7BoxText.Click(0, 8);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelLayoutContent.panel.panel.panelJobs2Content.panelLayoutContent.panel.panel.panel.panelAssets2Navigator.table.cell.table.cell.imageFindasset.Click(14, 17);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.Wait();
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Click(73, 8);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Click(44, 9);
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Text = "";
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell1.table.cell.panel.textnodeAw213BoxText.Click(14, 8);
}
Manually correcting the text setting step to:
Aliases.iexplore2.pageMetbenchCalibrationManagemen.panelJfsyDialog36.table.cell.table.cell.table.cell.textboxAssetsFormComboMedium.Text
= "MICROWAVE";
and running the test results in the following Warning:
<The editor cannot contain more than 0 symbols.
The text 'MICROWAVE' has been truncated to ''.
Sys.Process("iexplore", 3).Page("http://192.168.1.222/private/mcms/start.php?width=1812").Panel("JFSY_dialog_36").Table(0).Cell(1, 0).Table(0).Cell(3, 0).Table(0).Cell(1, 5).Textbox(0)>
Note that in spite of the maxLength setting of 40, TestComplete is unable to record or set a non-empty string in the text box.
Related Content
- 12 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago