> For the complete documentation index, see [llms.txt](https://testingvn.gitbook.io/playwright/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://testingvn.gitbook.io/playwright/implement-test-cases/web-table.md).

# Web Table

Table

```typescript
import {test, expect} from '@playwright/test';

test('verify max due person full name', async ({ page }) => {
    await page.goto('https://the-internet.herokuapp.com/tables');
    const table = await page.locator('#table1');
    const rows = await table.locator('tbody tr');

    const tableData = await rows.evaluateAll((rows) => {
        return rows.map((row) => {
            const cells = row.querySelectorAll('td');
            return {
                firstName: cells[0].innerText,
                lastName: cells[1].innerText,       
                due: cells[3].innerText.replace('$', ''),
            };
        });
    });
    const {firstName, lastName} = tableData.reduce((prev, current) => {
        return parseFloat(prev.due) > parseFloat(current.due) ? prev : current;
    });
    expect(`${firstName} ${lastName}`).toBe('Doe Jason');
   })
```
