The Repository Item is setup with Variable $row_count (/dom//td[#'rptTabs_WebTab_cp']/iframe[@id='rptTabs_WebTab_frame0']//tr[$row_count]/td[62])
Here is the User Code:
Code: Select all
public void shipment_selection (string row_count)
public void shipment_selection (string row_count)
{
Report.Log(ReportLevel.Info, "Checkboxes", "Gathering information to check the boxes.");
int count = 0;
int row_count_number = 0;
var table_checkboxes = repo.IRRIS.RptTabsWebTabFrame0.table_checkboxesInfo.CreateAdapters<InputTag>();
foreach(var table_checkbox in table_checkboxes){
row_count_number ++;
//for(int index = 0; index < repo.IRRIS.RptTabsWebTabFrame0.table_checkboxesInfo.CreateAdapters<InputTag>().Count; index ++) {
//var table_checkboxes = repo.IRRIS.RptTabsWebTabFrame0.table_checkboxes;
if (table_checkbox.Enabled) {
table_checkbox.Click();
row_count = row_count_number.ToString();
Report.Log(ReportLevel.Info, "User Code", row_count, new RecordItemIndex(1));
//Adding getting Lat/Long
// Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'InnerText' from item 'IRRIS.RptTabsWebTabFrame0.Latitude' and assigning its value to variable 'var_latitude'.", repo.IRRIS.RptTabsWebTabFrame0.LatitudeInfo, new RecordItemIndex(0));
// var_latitude = repo.IRRIS.RptTabsWebTabFrame0.Latitude.Element.GetAttributeValueText("InnerText");
// Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'InnerText' from item 'IRRIS.RptTabsWebTabFrame0.Longitude' and assigning its value to variable 'var_longitude'.", repo.IRRIS.RptTabsWebTabFrame0.LongitudeInfo, new RecordItemIndex(0));
// var_longitude = repo.IRRIS.RptTabsWebTabFrame0.Longitude.Element.GetAttributeValueText("InnerText");
// Report.Log(ReportLevel.Info,"Latitdude is ",var_latitude);
// Report.Log(ReportLevel.Info,"Longitude is ",var_longitude);
// Delay.Milliseconds(0);
//
//END GETTING LAT/LONG
count ++;
}
if (count==1)
{break;}
How can I pass the row_count out of the user code so that the repository can use it?