I want to iterate thru the table, and store the cell values to dataAfter constant. it doesnt print console.log- cells value at all. looks like the loop is not executing., want to use the table value (dataAfter) to compare with sorted array tableDataSortedAsc, to see if table values are in ascending order.
want to assert if the table values are in ascending order.
I' m referring the link below, which uses elementHandles, i wanted to use Locator instead and iterate thru the table. Please advise if there are any other solution to verify the table values in ascending order.
I want to iterate thru the table, and store the cell values to dataAfter constant. it doesnt print console.log- cells value at all. looks like the loop is not executing., want to use the table value (dataAfter) to compare with sorted array tableDataSortedAsc, to see if table values are in ascending order.
want to assert if the table values are in ascending order.
const tableDataSortedAsc = [ ['ATL'], ['AUS'], ['BWI'], ['DAL'], ['DEN'], ['FLL'] ]
output: dataAfterLocator@[data-testid='table-IFOverview'] tbody tr
I' m referring the link below, which uses elementHandles, i wanted to use Locator instead and iterate thru the table. Please advise if there are any other solution to verify the table values in ascending order.
https://applitools.com/event/verifying-sortable-tables-in-playwright-js/