How to click on a label/link exist in a row?
Hi,
I have written a script to click on a link exist in each row (first column entry)
in a table. Attached the screen shot.
If i run this script , it is always selecting the first
entry. Kindly suggest any changes to my script?
function orderdetails(y)
{
var j;
order = Aliases.IEXPLORE.pageCustomerorderdetails.panelCtl00MG8b2deec601ca48898630_1.tableCtl00MG8b2deec601ca48898630;
var ordercount = order.RowCount-1;
Log.Message(ordercount);
for(j=1; j<=ordercount; j++)
{
Log.Message(j);
orderslink = order.cell(j, 0);
Log.Message(y);
Log.Message(orderslink.innerText);
if((orderslink.innerText)== "Test 1")
{
var PropArray, ValuesArray, w;
PropArray = new Array("innerText");
ValuesArray = new Array("Test 1");
w = orderslink.FindChild(PropArray, ValuesArray, 5);
Delay(3000);
w.Click();
Aliases.IEXPLORE.pageCustomerorderdetails.linkClose.Click();
Delay(3000);
}
}
}
Many Thanks,
Kish