Contributions
Re: button bars
The following is the code - Sub AddBillPackageCancel Log.LockEvents(10) Set HSP_Meditrac = Aliases.HSP_Meditrac Call OpenScreen Set frmBillingPackages = HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities Set tspBillingEntities = HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities.tspBillingEntities Call tspBillingEntities.ClickItem("New Billing Entity") Set gbxDemographics = HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities.splStylesheet.SplitterPanel.splButtonBar.SplitterPanel.splSave.SplitterPanel.gbxDemographics Call gbxDemographics.txtBillingEntityName.SetText("Autotest Bill Package") Set mcboEntityType = HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities.splStylesheet.SplitterPanel.splButtonBar.SplitterPanel.splSave.SplitterPanel.gbxDemographics.mcboEntityType Call mcboEntityType.Click(216, 8) Call mcboEntityType.Keys("[BS]") Call HSP_Meditrac.ToolStripDropDown.ToolkitListView.ClickItem("Group", "The Entity mapped to the Billing Entity is a Group") Set txtBillingEntityDescription = gbxDemographics.txtBillingEntityDescription Call txtBillingEntityDescription.Keys("This is a Bill Package created by the Autotester") Set tabControl = HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities.splStylesheet.SplitterPanel.splButtonBar.SplitterPanel2.tabctlBBars Set toolkitButtonBar = tabControl.tpBBarProperties.bbarProperties Call toolkitButtonBar.Click(85, 36) ********* This is where I would like to address the button either by index or name instead of x/y coordinates Set gbxPostingSettings = Aliases.HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities.splStylesheet.SplitterPanel.splButtonBar.SplitterPanel.splSave.SplitterPanel.gbxPostingSettings Set txtNextBillCutoffDate = gbxPostingSettings.txtNextBillCutoffDate Call txtNextBillCutoffDate.SetText("15") Set txtRetroAddLimit = gbxPostingSettings.txtRetroAddLimit Call txtRetroAddLimit.SetText("3") Set txtRetroTermLimit = gbxPostingSettings.txtRetroTermLimit Call txtRetroTermLimit.SetText("6") Call toolkitButtonBar.Click(51, 60) Set gbxBillSettings = Aliases.HSP_Meditrac.MDIForm.MdiClient.frmBillingEntities.splStylesheet.SplitterPanel.splButtonBar.SplitterPanel.splSave.SplitterPanel.pnlBillSettings.gbxBillSettings Call gbxBillSettings.cboDueDatePeriodUnitType.ClickItem("Months") Call gbxBillSettings.cboPaymentGracePeriodUnitType.ClickItem("Months") Call tspBillingEntities.ClickItem("Cancel Billing Entity") HSP_Meditrac.dlgMeditrac.btnYes.ClickButton Call CloseScreen End Sub1.6KViews0likes1CommentRe: button bars
<script>// function writeContent(){ document.getElementById("container").innerText = document.getElementById("dataIsland").innerHTML; }window.onload = writeContent; // </script> I get the following error Object doesn't support this property or method: 'toolkitButtonBar.Items.Item_2(...).Click' Error location: Unit: "HSPAdminTK\Codes Management\Script\Tasks" Line: 202 Column: 1. Object doesn't support this property or method: 'toolkitButtonBar.Items.Item_2(...).Click' I cannot figure out how to identify that button As soon as I correctly identify the button, the Click method should be available1.6KViews0likes3CommentsRe: button bars
I see the property Index is available for the toolkitButtonBar but I dont know how to use it Set toolkitButtonBar = splitContainer.WinFormsObject("SplitterPanel", "", 1).bbarBroker WhenI tried the following codeit returns the label on the button -- Properties Set text = toolkitButtonBar.Items.Item_2(0).get_Text When the following code executes it returns the label on the second button -- Financials Set text = toolkitButtonBar.Items.Item_2(1).get_Text But I cannot seem to find the Click method.1.6KViews0likes5Commentsbutton bars
The following code was recorded using Test Complete. Set toolkitButtonBar = splitContainer.WinFormsObject("SplitterPanel", "", 1).bbarBroker Call toolkitButtonBar.Click(36, 50) A button called Financials is clicked on thetoolkitButtonBar. Instead of giving the (x,y), I would like to reference the button either by name or index and do the click operation in vbscript. Thanks for your help1.7KViews0likes7CommentsRe: Connection string not working
I tried adding the Persist parameter - same error. The data source is a remote server. Could that be the problem? The database I need to refer to does not reside on the same server as Test complete. SProc.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=autotest_sa;Password=testing123;Initial Catalog=AUTOTEST;Data Source=TESTDB"2.1KViews0likes0CommentsRe: Connection string not working
I tried the following connection string Provider=SQLOLEDB.1;User ID=autotest_sa;Password=testing123;Initial Catalog=AUTOTEST;Data Source=TESTDB I get the following error Parameter object is improperly defined. Inconsistent or incomplete information was provided.. I got this connection information from one of the DBTables stores I created. One of the replies to my post was to include the parameter Location. Based on what I read, this is the path to the file location. That was not necessary when I set up the DBTables store. Is this necessary?2.1KViews0likes0CommentsConnection string not working
Set SProc = ADO.CreateADOStoredProc I tried SProc.ConnectionString = "Provider=SQLOLEDB.1;User ID=autotest_sa;Password=testing123;Initial Catalog=AUTOTEST;Data Source=TESTDB" and SProc.ConnectionString = "Provider=SQLOLEDB.1;User ID=autotest_sa;Password=testing;Initial Catalog=AUTOTEST;Data Source=192.168.48.244" Receive the following error when I try to execute stored procedure Parameter object is improperly defined. Inconsistent or incomplete information was provided Tried many variations unable to get working2.4KViews0likes8CommentsToolstrip
I have a toolstrip object called frmAuthorizations.tspAuthorizations When the screen first appears,I can refer to the toolstrip items by name frmAuthorizations.tspAuthorizations.ClickItem("New Add a new authorization") After the aboveoperation occurs, the same toolstrip item changes to a different icon and becomes a cancel button. I can no longer refer to this item by the same name. Both the add and the cancel are at index 2. How can I do a clickitem when it is a cancel button. I tried using the wButtonID but that did not work. What am I doing wrong?846Views0likes2Comments