My current task involves working with two tables displayed on a screen. Table 1 contains specific data that I need to verify.
The goal is to confirm the presence of the correct column and row headings in each table.
I attempted to achieve this using the following code snippet:
.expect(page.Table.nth(0).page.tableHeaderRow.nth(1).withText('row heading').exists).ok()
However, my efforts led to encountering two distinct errors:
1) The async function call was not awaited. To ensure proper sequence execution, make sure to use the "await" keyword before any actions, assertions, or their sequences.
2) TypeError: Cannot read property 'tableHeaderRow' of undefined
Although I understand that the code above may be inaccurate, I am unsure how to locate the row/column header specifically within Table 1. Any guidance on this matter would be greatly appreciated.