Skip to content

Examples

Pick the example closest to what you are trying to do. If you are new, start with Basic Usage, then Pagination.

By Task

I want to...Start here
Find a row and assert a cellBasic Usage
Search across pagesPagination
Work with infinite scrollInfinite Scroll
Extract many rows into dataData Scraping
Use MUI DataGridMUI DataGrid
Use AG GridAG Grid
Write a custom strategyCustom Strategies

Common Starting Points

Assert a Cell by Column Name

typescript
const row = table.getRow({ Name: 'John Doe' });
await expect(row.getCell('Email')).toHaveText('john@example.com');

Find Rows Across Pages

typescript
const engineers = await table.findRows({ Department: 'Engineering' });
expect(engineers.length).toBeGreaterThan(0);

Extract Data

typescript
const data = await table.map(({ row }) => row.toJSON());

Fill Editable Cells

typescript
const row = table.getRow({ ID: '12345' });
await row.smartFill({ Email: 'new.email@example.com' });

Need API Details?

Use the API Reference when you know the method or config option and need exact signatures.