Forum Discussion
Now I can able to get the values from the table. Which is dynamic table but I am unable to click the radiobutton in specfied row. once the search criteria is matched means i need to clik the radiobutton. If i used objName["cell"](i, 0)["Click"]() then it goes to row what row index stored in Namespacing file.
please suggest me how to click that radio button which is presented in the row. the table hierachy is Table ->Cell ->Radiobutton
function Test1()
{
var iexplore;
var table1;
var transdate, trcd, desc;
iexplore = Aliases["iexplore"];
table1 = iexplore["pageMiserBa"]["frameThisapp"]["frameMainframe"]["formTheform"]["tableFieldstable"]["cell"]["panelDiv1"]["tableIdformattable"];
transdate ="05/02/11";
trcd ="CX";
desc="";
AppTbl_FindRowByColVal(table1, transdate, trcd, desc);
}
function AppTbl_FindRowByColVal(objName, val1, val2, val3)
{
if ((val1 != "" )&& (val2 != "" )&&(val3 != "" ))
{
for (var i = 0; i<= objName["RowCount"]; i++)
{
if ((objName["rows"]["item"](i).cells(1).innerText == val1) && (objName["rows"]["item"](i).cells(3).innerText == val2))
{
objName["cell"](i, 0)["Click"]();
//Log["Message"]("the given TransDate = " + transdate + "trcd = " + trcd + "description = " + description + "is correct");
}
}
}
Related Content
- 7 months agoḼari
- 9 months agoLuukdb
- 9 years agoilovechiku