Forum Discussion
function ConvertArray(AArray)
{
// Uses the Dictionary object to convert a JScript array
var objDict = new ActiveXObject("Scripting.Dictionary");
objDict.RemoveAll();
for (var j in AArray)
objDict.Add(j, AArray
return objDict.Items();
}
Log.Message ("Total number of found checkboxes:" + checkBoxes.length); //log how many items are in the array
for (i = 0; i < checkBoxes.length; i++) //checkboxes array is stepping though the names
{
CB = (checkBoxes.innerText);
CB = (checkBoxes.innerText); //Assign values to variables to populate the querry string to see if the checkbox is selected (T/F)
CB1 = (checkBoxes.RowIndex);
CB2 = (checkBoxes.ColumnIndex);
CB5 = eval(checkBoxes).Name;
Log.Message(DDT.CurrentDriver.Value(CB));
(line 1) table.Cell(162,4).Checkbox("ctl00_PageCenterContentPlaceHolder_DomainDropCheckBoxList_814").ClickChecked(false);
(line2) table.CB5.Checkbox("ctl00_PageCenterContentPlaceHolder_DomainDropCheckBoxList_814").ClickChecked(DDT.CurrentDriver.Value(CB));
Line 1 is the same is the same as line two ( pointing at the same checkbox) the line using 'cell(162,4)' works fine. line 2 'cannot find Cell' i noticed that when I evaluate table.'Cell(162,4).'I get values, when I evaluate 'table.CB5' i get (Null Non-Automation Object)
So am i not using the eval properly or do i have another issue?
Thanks,
Mark
Related Content
- 11 years agoashok_natar
- 5 years agosenthkum