Select multiple check-boxes based on multiple values
Posted: Wed Feb 13, 2013 2:01 pm
Hi Support,
In an application, I need to select multiple check-boxes on the basis of multiple values provided in cell of excel, split-ted by comma. I have applied following code snippet-
But it's giving error as in attached "RXError_SelectMultipleCheckbox.png" screenshot.
FYI, I have also attached RX snapshot of the grid. Please review that and let me know where I am wrong and what needs to be done for this ? I have to select some check-boxes from last column of grid.
Thanks in advance,
Varun.
In an application, I need to select multiple check-boxes on the basis of multiple values provided in cell of excel, split-ted by comma. I have applied following code snippet-
Code: Select all
string source = VarKeepCurrAuth_CheckBox;
string[] vals = source.Split(',');
InputTag chkoptions;
foreach(string val in vals)
{
Host.Local.TryFindSingle("/dom[@caption='Analyst Worksheet']//table[#'dgDataGrid']//td[@innertext='"+val+"'/../td[27]//input]", out chkoptions);
chkoptions.Click();
}
FYI, I have also attached RX snapshot of the grid. Please review that and let me know where I am wrong and what needs to be done for this ? I have to select some check-boxes from last column of grid.
Thanks in advance,
Varun.