vthomeschoolmom
6 years agoSuper Contributor
Really TR not supported in Firefox and Chrome? Do I understand this correctly
Consider this code:
// Select desired cell. If not already selected, click it. (If // it is already selected do not click as clicking will de-select.) // Row objects are not present for FF and Chrome? function SelectCell(table, rowIndex, colIndex) { Log.Message(Options.Web.TreeModel); var row = table.Row(rowIndex); if (!IsRowSelected(row)) { table.Cell(rowIndex, colIndex).scrollIntoView(); aqUtils.Delay(ProjectSuite.Variables.TinyWaitTimeout); /// inconsistent error on click table.Cell(rowIndex, colIndex).Click(); } }
which calls IsRowSelected
function IsRowSelected(row) { var rowClassName = row.className; if (rowClassName.includes("row-selected")) { return true; } return false; }
Which determines whether or not the row is selected before click. Very handy.
But not supported in Chrome and Firefox? Is there no way to get the class of a TR in Chrome and Firefox? Or really anything off the TR tag?