1 declare namespace Cypress {
3 getTableRowByIndex : typeof getTableRowByIndex;
7 /***************************************
8 get table row by table id and index
9 *************************************/
10 function getTableRowByIndex(id : string, index : number) : Chainable<JQuery<HTMLElement>> {
11 return cy.get('table#' + id + ' tbody tr').eq(index);
14 Cypress.Commands.add('getTableRowByIndex', getTableRowByIndex);