i am using the following code to get a text value from a < td > :
let serviceName;
cy.get('tr').eq(1).then(row => {
cy.wrap(row).find('td').eq(1).invoke('prop', 'innerText').then(val => { serviceName = val });
})
its working fine on some of pages and not on some others with the same table type/class/etc.. front end is built with Angular
using the same code like this also fails :
let serviceName;
cy.get('tr').eq(1).find('td').eq(1).invoke('prop', 'innerText').then(val => { serviceName = val });
})