Raghukatta
9 years agoContributor
Get count of items and loop through items in Keyword scripts
Hi,
I am trying to get the count of variables in the toolbar and then loop through the items and click in keyword scipts.
But I am getting an error saying "An invalid value is specified for End Value. The value must be a numeric value
An invalid value is specified for End Value. The value must be a numeric value".
I created local variable as integers and assigned the item count it.
Set Variable Value PaymentItemCount [Local] Aliases.Ascend.SaleForm.PaymentsToolbar.get_Items().Count
For Loop Variables.j, 0, Variables.PaymentItemsCount, 1
Run Script Routine ToolbarItemsClick - clickDevxToolBarItem Aliases.Ascend.SaleForm.PaymentsToolbar, Aliases.Ascend.SaleForm.PaymentsToolbar.Items.Item_2(j).Key
Thanks in advance