18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Identifying links in a table
I have a table where I am trying to identify links inside cells. The links are always in the same column, but the value in the column can either be blank, text or a link.
The blanks are easy to take care of, but I can't identify if something is a link or plain text. Here is my source:
var $_feesTable = _table("grid-combined-credit-summary-inside[2]");
var $cellValue = "";
_set($feesCnt, $_feesTable.rows.length -3);
for (var $i = 1; $i < $feesCnt;$i++)
{
$cellValue = _getText(_cell($_closingfeesTable, $i, 1));
if(($cellValue != "") && (_condition(_exists(_link($cellValue)))))
{
doClick(_link(_getText(_cell($_feesTable, $i, 1))));
//do stuff
}
}
Using this code, any text at all in a cell is identified as a link and is passed through the if.
Any suggestions?
Dan
EDIT:
I got some more information and it appears that they actually ARE links, but they are just disabled. I tried _assertTrue(_link($cellValue).enabled) in place of (_condition(_exists(_link($cellValue)))), but it still fails.
The blanks are easy to take care of, but I can't identify if something is a link or plain text. Here is my source:
var $_feesTable = _table("grid-combined-credit-summary-inside[2]");
var $cellValue = "";
_set($feesCnt, $_feesTable.rows.length -3);
for (var $i = 1; $i < $feesCnt;$i++)
{
$cellValue = _getText(_cell($_closingfeesTable, $i, 1));
if(($cellValue != "") && (_condition(_exists(_link($cellValue)))))
{
doClick(_link(_getText(_cell($_feesTable, $i, 1))));
//do stuff
}
}
Using this code, any text at all in a cell is identified as a link and is passed through the if.
Any suggestions?
Dan
EDIT:
I got some more information and it appears that they actually ARE links, but they are just disabled. I tried _assertTrue(_link($cellValue).enabled) in place of (_condition(_exists(_link($cellValue)))), but it still fails.