@cerios/playwright-table 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,14 +1,53 @@
1
1
  import { Locator } from '@playwright/test';
2
2
 
3
- type Cell = string | boolean | number;
3
+ /**
4
+ * Represents a single cell value within a table row.
5
+ *
6
+ * @remarks
7
+ * A `Cell` is a string that holds the textual content of a table cell,
8
+ * whether in the header or body of the table.
9
+ */
10
+ type Cell = string;
11
+ /**
12
+ * Represents a row in the table body, defined as an array of `Cell` objects.
13
+ *
14
+ * @remarks
15
+ * Each `BodyRow` corresponds to a single row in the table's body section.
16
+ *
17
+ * @see Cell
18
+ */
4
19
  type BodyRow = Cell[];
5
- type HeaderRow = string[];
20
+ /**
21
+ * Represents a row in the table header, defined as an array of `Cell` objects.
22
+ *
23
+ * @remarks
24
+ * Each `HeaderRow` corresponds to a single row in the table's header section.
25
+ *
26
+ * @see Cell
27
+ */
28
+ type HeaderRow = Cell[];
6
29
 
30
+ /**
31
+ * Enum representing the possible types of content that can be extracted from a table cell.
32
+ *
33
+ * - `TextContent`: The raw text content of the cell, including hidden elements and extra whitespace.
34
+ * - `InnerText`: The rendered text content of the cell, as seen by the user, with whitespace collapsed and hidden elements excluded.
35
+ */
7
36
  declare enum CellContentType {
8
37
  TextContent = "textContent",
9
38
  InnerText = "innerText"
10
39
  }
11
40
 
41
+ /**
42
+ * Options for configuring a table header row.
43
+ *
44
+ * @property cellContentType - The type of content allowed in the header cell.
45
+ * @property emptyCellReplacement - If true, replaces empty header cells with a default value.
46
+ * @property duplicateSuffix - If true, appends a suffix to duplicate header values.
47
+ * @property colspan - Configuration for column spanning in the header row.
48
+ * @property colspan.enabled - If true, enables column spanning.
49
+ * @property colspan.suffix - If true, appends a suffix to spanned columns.
50
+ */
12
51
  type HeaderRowOptions = {
13
52
  cellContentType?: CellContentType;
14
53
  emptyCellReplacement?: boolean;
@@ -19,6 +58,67 @@ type HeaderRowOptions = {
19
58
  };
20
59
  };
21
60
 
61
+ /**
62
+ * Options for loading table data, headers, and rows.
63
+ *
64
+ * @example
65
+ * // Wait up to 5 seconds and use custom cell content type for body rows
66
+ * const options: LoadOptions = {
67
+ * timeout: 5000,
68
+ * bodyRowOptions: { cellContentType: CellContentType.TextContent },
69
+ * headerRowOptions: {
70
+ * colspan: { enabled: true, suffix: true },
71
+ * duplicateSuffix: true,
72
+ * emptyCellReplacement: false,
73
+ * },
74
+ * };
75
+ * await table.getBodyRows(options);
76
+ */
77
+ type LoadOptions = {
78
+ /** Timeout in milliseconds for loading table data. */
79
+ timeout?: number;
80
+ /** See {@link HeaderRowOptions} for available options. */
81
+ headerRowOptions?: HeaderRowOptions;
82
+ /** Options for parsing body rows. */
83
+ bodyRowOptions?: {
84
+ cellContentType?: CellContentType;
85
+ };
86
+ };
87
+ /**
88
+ * Options for waiting for table rows to appear or meet certain conditions.
89
+ *
90
+ * @example
91
+ * // Wait for at least 3 body rows, each with 3 cells containing content, within 2 seconds
92
+ * const waitOptions: WaitForTableRowsOptions = {
93
+ * timeout: 2000,
94
+ * row: {
95
+ * amount: 3,
96
+ * cell: {
97
+ * totalCount: 3,
98
+ * contentCount: 3,
99
+ * },
100
+ * },
101
+ * };
102
+ * await table.waitForBodyRows(waitOptions);
103
+ */
104
+ type WaitForTableRowsOptions = {
105
+ /** Timeout in milliseconds for waiting. */
106
+ timeout?: number;
107
+ /** Row and cell count/content conditions. */
108
+ row?: {
109
+ /** Expected number of rows. */
110
+ amount?: number;
111
+ cell?: {
112
+ /** Expected number of cells per row. */
113
+ totalCount?: number;
114
+ /** Expected number of cells with content per row. */
115
+ contentCount?: number;
116
+ };
117
+ };
118
+ };
119
+ /**
120
+ * Represents a table in Playwright, providing methods to interact with its headers, rows, and cells.
121
+ */
22
122
  declare class PlaywrightTable {
23
123
  private readonly _tableLocator;
24
124
  private readonly _options?;
@@ -28,6 +128,34 @@ declare class PlaywrightTable {
28
128
  private _bodyRowColumnSelector;
29
129
  private _headerRowLocator;
30
130
  private _headerColumnSelector;
131
+ /**
132
+ * Creates an instance of the table handler with customizable selectors for headers and rows.
133
+ *
134
+ * @param _tableLocator - The Playwright `Locator` pointing to the root table element.
135
+ * @param _options - Optional configuration for customizing header and row selectors.
136
+ * @param _options.header - Options for header row and columns.
137
+ * @param _options.header.setMainHeaderRow - (Optional) Index of the main header row if multiple header rows exist.
138
+ * @param _options.header.rowSelector - (Optional) CSS selector for locating header rows. Defaults to `"thead>tr"`.
139
+ * @param _options.header.columnSelector - (Optional) CSS selector for locating header columns. Defaults to `"th"`.
140
+ * @param _options.row - Options for body rows and columns.
141
+ * @param _options.row.rowSelector - (Optional) CSS selector for locating body rows. Defaults to `"tbody>tr"`.
142
+ * @param _options.row.columnSelector - (Optional) CSS selector for locating body columns. Defaults to `"td"`.
143
+ *
144
+ * @example
145
+ * const table = new PlaywrightTable(
146
+ * page.locator('table.my-table'),
147
+ * {
148
+ * header: {
149
+ * rowSelector: 'thead tr.header',
150
+ * columnSelector: 'th.header-cell'
151
+ * },
152
+ * row: {
153
+ * rowSelector: 'tbody tr.data-row',
154
+ * columnSelector: 'td.data-cell'
155
+ * }
156
+ * }
157
+ * );
158
+ */
31
159
  constructor(_tableLocator: Locator, _options?: {
32
160
  header?: {
33
161
  setMainHeaderRow?: number;
@@ -39,53 +167,80 @@ declare class PlaywrightTable {
39
167
  columnSelector?: string;
40
168
  };
41
169
  } | undefined);
42
- getHeaderRows(options?: {
43
- timeout?: number;
44
- duplicateSuffix?: boolean;
45
- headerRowOptions?: HeaderRowOptions;
46
- }): Promise<HeaderRow[]>;
47
- getMainHeaderRow(options?: {
48
- timeout?: number;
49
- duplicateSuffix?: boolean;
50
- headerRowOptions?: HeaderRowOptions;
51
- }): Promise<HeaderRow>;
52
- getBodyRows(options?: {
53
- timeout?: number;
54
- }): Promise<BodyRow[]>;
170
+ /**
171
+ * Retrieves all header rows of the table.
172
+ * @param options - Optional parameters for timeout and header row options.
173
+ * @param options.timeout - Timeout in milliseconds for loading table data.
174
+ * @param options.headerRowOptions - See {@link HeaderRowOptions} for available options.
175
+ * @returns A promise that resolves to an array of header rows.
176
+ */
177
+ getHeaderRows(options?: Pick<LoadOptions, "timeout" | "headerRowOptions">): Promise<HeaderRow[]>;
178
+ /**
179
+ * Retrieves the main header row of the table.
180
+ * @param options - Optional parameters for timeout and header row options.
181
+ * @param options.timeout - Timeout in milliseconds for loading table data.
182
+ * @param options.headerRowOptions - See {@link HeaderRowOptions} for available options.
183
+ * @returns A promise that resolves to the main header row.
184
+ */
185
+ getMainHeaderRow(options?: Pick<LoadOptions, "timeout" | "headerRowOptions">): Promise<HeaderRow>;
186
+ /**
187
+ * Retrieves all body rows of the table.
188
+ * @param options.timout - Timeout in milliseconds for loading table data.
189
+ * @param options.bodyRowOptions.cellContentType - The content type for the body rows.
190
+ * @returns A promise that resolves to an array of body rows.
191
+ */
192
+ getBodyRows(options?: Pick<LoadOptions, "timeout" | "bodyRowOptions">): Promise<BodyRow[]>;
193
+ /**
194
+ * Retrieves a specific cell locator in the body of the table.
195
+ * @param rowNumber - The row number (0-based index).
196
+ * @param headerPosition - The header position (0-based index).
197
+ * @returns A Playwright Locator for the specified cell.
198
+ */
55
199
  getBodyCellLocator(rowNumber: number, headerPosition: number): Locator;
56
- getBodyCellLocatorByRowConditions(conditions: Record<string, string>, targetHeader: string, options?: {
57
- timeout?: number;
58
- duplicateSuffix?: boolean;
59
- colspanEnabled?: boolean;
60
- }): Promise<Locator>;
61
- getAllBodyCellLocatorsByHeaderName(header: string, options?: {
62
- timeout?: number;
63
- }): Promise<Locator[]>;
64
- getAllBodyCellLocatorsByHeaderIndex(headerIndex: number): Promise<Locator[]>;
65
- getJson(options?: {
66
- timeout?: number;
67
- }): Promise<any>;
68
- waitForHeaderRows(options?: {
69
- timeout?: number;
70
- row?: {
71
- amount?: number;
72
- cell?: {
73
- totalCount?: number;
74
- contentCount?: number;
75
- };
76
- };
77
- }): Promise<void>;
78
- waitForBodyRows(options?: {
79
- timeout?: number;
80
- row?: {
81
- amount?: number;
82
- cell?: {
83
- totalCount?: number;
84
- contentCount?: number;
85
- };
86
- };
87
- }): Promise<void>;
200
+ /**
201
+ * Retrieves a cell locator in the body of the table based on row conditions and a target header.
202
+ * @param conditions - A record of header names and their expected values.
203
+ * @param targetHeader - The target header name for the desired cell.
204
+ * @param options - See {@link LoadOptions} for available options.
205
+ * @returns A promise that resolves to a Playwright Locator for the matching cell.
206
+ * @throws An error if no matching row is found or if a header is not found.
207
+ */
208
+ getBodyCellLocatorByRowConditions(conditions: Record<string, string>, targetHeader: string, options?: LoadOptions): Promise<Locator>;
209
+ /**
210
+ * Retrieves all cell locators in the body of the table for a specific header name.
211
+ * @param header - The header name.
212
+ * @param options - See {@link LoadOptions} for available options.
213
+ * @returns A promise that resolves to an array of Playwright Locators for the cells.
214
+ * @throws An error if the header is not found.
215
+ */
216
+ getAllBodyCellLocatorsByHeaderName(header: string, options?: LoadOptions): Promise<Locator[]>;
217
+ /**
218
+ * Retrieves all cell locators in the body of the table for a specific header index.
219
+ * @param headerIndex - The header index (0-based).
220
+ * @param options - See {@link LoadOptions} for available options.
221
+ * @returns A promise that resolves to an array of Playwright Locators for the cells.
222
+ */
223
+ getAllBodyCellLocatorsByHeaderIndex(headerIndex: number, options?: LoadOptions): Promise<Locator[]>;
224
+ /**
225
+ * Converts the table data into a JSON object.
226
+ * @param options - See {@link LoadOptions} for available options.
227
+ * @returns A promise that resolves to a JSON representation of the table.
228
+ */
229
+ getJson(options?: LoadOptions): Promise<any>;
230
+ /**
231
+ * Waits for the header rows to be loaded.
232
+ * @param options - See {@link WaitForTableRowsOptions} for available options.
233
+ * @returns A promise that resolves when the header rows are loaded.
234
+ */
235
+ waitForHeaderRows(options?: WaitForTableRowsOptions): Promise<void>;
236
+ /**
237
+ * Waits for the body rows to be loaded.
238
+ * @param options - See {@link WaitForTableRowsOptions} for available options.
239
+ * @returns A promise that resolves when the body rows are loaded.
240
+ */
241
+ waitForBodyRows(options?: WaitForTableRowsOptions): Promise<void>;
88
242
  private load;
243
+ private mainHeaderRow;
89
244
  }
90
245
 
91
- export { type BodyRow, type Cell, CellContentType, type HeaderRow, type HeaderRowOptions, PlaywrightTable };
246
+ export { type BodyRow, type Cell, CellContentType, type HeaderRow, type HeaderRowOptions, type LoadOptions, PlaywrightTable, type WaitForTableRowsOptions };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,53 @@
1
1
  import { Locator } from '@playwright/test';
2
2
 
3
- type Cell = string | boolean | number;
3
+ /**
4
+ * Represents a single cell value within a table row.
5
+ *
6
+ * @remarks
7
+ * A `Cell` is a string that holds the textual content of a table cell,
8
+ * whether in the header or body of the table.
9
+ */
10
+ type Cell = string;
11
+ /**
12
+ * Represents a row in the table body, defined as an array of `Cell` objects.
13
+ *
14
+ * @remarks
15
+ * Each `BodyRow` corresponds to a single row in the table's body section.
16
+ *
17
+ * @see Cell
18
+ */
4
19
  type BodyRow = Cell[];
5
- type HeaderRow = string[];
20
+ /**
21
+ * Represents a row in the table header, defined as an array of `Cell` objects.
22
+ *
23
+ * @remarks
24
+ * Each `HeaderRow` corresponds to a single row in the table's header section.
25
+ *
26
+ * @see Cell
27
+ */
28
+ type HeaderRow = Cell[];
6
29
 
30
+ /**
31
+ * Enum representing the possible types of content that can be extracted from a table cell.
32
+ *
33
+ * - `TextContent`: The raw text content of the cell, including hidden elements and extra whitespace.
34
+ * - `InnerText`: The rendered text content of the cell, as seen by the user, with whitespace collapsed and hidden elements excluded.
35
+ */
7
36
  declare enum CellContentType {
8
37
  TextContent = "textContent",
9
38
  InnerText = "innerText"
10
39
  }
11
40
 
41
+ /**
42
+ * Options for configuring a table header row.
43
+ *
44
+ * @property cellContentType - The type of content allowed in the header cell.
45
+ * @property emptyCellReplacement - If true, replaces empty header cells with a default value.
46
+ * @property duplicateSuffix - If true, appends a suffix to duplicate header values.
47
+ * @property colspan - Configuration for column spanning in the header row.
48
+ * @property colspan.enabled - If true, enables column spanning.
49
+ * @property colspan.suffix - If true, appends a suffix to spanned columns.
50
+ */
12
51
  type HeaderRowOptions = {
13
52
  cellContentType?: CellContentType;
14
53
  emptyCellReplacement?: boolean;
@@ -19,6 +58,67 @@ type HeaderRowOptions = {
19
58
  };
20
59
  };
21
60
 
61
+ /**
62
+ * Options for loading table data, headers, and rows.
63
+ *
64
+ * @example
65
+ * // Wait up to 5 seconds and use custom cell content type for body rows
66
+ * const options: LoadOptions = {
67
+ * timeout: 5000,
68
+ * bodyRowOptions: { cellContentType: CellContentType.TextContent },
69
+ * headerRowOptions: {
70
+ * colspan: { enabled: true, suffix: true },
71
+ * duplicateSuffix: true,
72
+ * emptyCellReplacement: false,
73
+ * },
74
+ * };
75
+ * await table.getBodyRows(options);
76
+ */
77
+ type LoadOptions = {
78
+ /** Timeout in milliseconds for loading table data. */
79
+ timeout?: number;
80
+ /** See {@link HeaderRowOptions} for available options. */
81
+ headerRowOptions?: HeaderRowOptions;
82
+ /** Options for parsing body rows. */
83
+ bodyRowOptions?: {
84
+ cellContentType?: CellContentType;
85
+ };
86
+ };
87
+ /**
88
+ * Options for waiting for table rows to appear or meet certain conditions.
89
+ *
90
+ * @example
91
+ * // Wait for at least 3 body rows, each with 3 cells containing content, within 2 seconds
92
+ * const waitOptions: WaitForTableRowsOptions = {
93
+ * timeout: 2000,
94
+ * row: {
95
+ * amount: 3,
96
+ * cell: {
97
+ * totalCount: 3,
98
+ * contentCount: 3,
99
+ * },
100
+ * },
101
+ * };
102
+ * await table.waitForBodyRows(waitOptions);
103
+ */
104
+ type WaitForTableRowsOptions = {
105
+ /** Timeout in milliseconds for waiting. */
106
+ timeout?: number;
107
+ /** Row and cell count/content conditions. */
108
+ row?: {
109
+ /** Expected number of rows. */
110
+ amount?: number;
111
+ cell?: {
112
+ /** Expected number of cells per row. */
113
+ totalCount?: number;
114
+ /** Expected number of cells with content per row. */
115
+ contentCount?: number;
116
+ };
117
+ };
118
+ };
119
+ /**
120
+ * Represents a table in Playwright, providing methods to interact with its headers, rows, and cells.
121
+ */
22
122
  declare class PlaywrightTable {
23
123
  private readonly _tableLocator;
24
124
  private readonly _options?;
@@ -28,6 +128,34 @@ declare class PlaywrightTable {
28
128
  private _bodyRowColumnSelector;
29
129
  private _headerRowLocator;
30
130
  private _headerColumnSelector;
131
+ /**
132
+ * Creates an instance of the table handler with customizable selectors for headers and rows.
133
+ *
134
+ * @param _tableLocator - The Playwright `Locator` pointing to the root table element.
135
+ * @param _options - Optional configuration for customizing header and row selectors.
136
+ * @param _options.header - Options for header row and columns.
137
+ * @param _options.header.setMainHeaderRow - (Optional) Index of the main header row if multiple header rows exist.
138
+ * @param _options.header.rowSelector - (Optional) CSS selector for locating header rows. Defaults to `"thead>tr"`.
139
+ * @param _options.header.columnSelector - (Optional) CSS selector for locating header columns. Defaults to `"th"`.
140
+ * @param _options.row - Options for body rows and columns.
141
+ * @param _options.row.rowSelector - (Optional) CSS selector for locating body rows. Defaults to `"tbody>tr"`.
142
+ * @param _options.row.columnSelector - (Optional) CSS selector for locating body columns. Defaults to `"td"`.
143
+ *
144
+ * @example
145
+ * const table = new PlaywrightTable(
146
+ * page.locator('table.my-table'),
147
+ * {
148
+ * header: {
149
+ * rowSelector: 'thead tr.header',
150
+ * columnSelector: 'th.header-cell'
151
+ * },
152
+ * row: {
153
+ * rowSelector: 'tbody tr.data-row',
154
+ * columnSelector: 'td.data-cell'
155
+ * }
156
+ * }
157
+ * );
158
+ */
31
159
  constructor(_tableLocator: Locator, _options?: {
32
160
  header?: {
33
161
  setMainHeaderRow?: number;
@@ -39,53 +167,80 @@ declare class PlaywrightTable {
39
167
  columnSelector?: string;
40
168
  };
41
169
  } | undefined);
42
- getHeaderRows(options?: {
43
- timeout?: number;
44
- duplicateSuffix?: boolean;
45
- headerRowOptions?: HeaderRowOptions;
46
- }): Promise<HeaderRow[]>;
47
- getMainHeaderRow(options?: {
48
- timeout?: number;
49
- duplicateSuffix?: boolean;
50
- headerRowOptions?: HeaderRowOptions;
51
- }): Promise<HeaderRow>;
52
- getBodyRows(options?: {
53
- timeout?: number;
54
- }): Promise<BodyRow[]>;
170
+ /**
171
+ * Retrieves all header rows of the table.
172
+ * @param options - Optional parameters for timeout and header row options.
173
+ * @param options.timeout - Timeout in milliseconds for loading table data.
174
+ * @param options.headerRowOptions - See {@link HeaderRowOptions} for available options.
175
+ * @returns A promise that resolves to an array of header rows.
176
+ */
177
+ getHeaderRows(options?: Pick<LoadOptions, "timeout" | "headerRowOptions">): Promise<HeaderRow[]>;
178
+ /**
179
+ * Retrieves the main header row of the table.
180
+ * @param options - Optional parameters for timeout and header row options.
181
+ * @param options.timeout - Timeout in milliseconds for loading table data.
182
+ * @param options.headerRowOptions - See {@link HeaderRowOptions} for available options.
183
+ * @returns A promise that resolves to the main header row.
184
+ */
185
+ getMainHeaderRow(options?: Pick<LoadOptions, "timeout" | "headerRowOptions">): Promise<HeaderRow>;
186
+ /**
187
+ * Retrieves all body rows of the table.
188
+ * @param options.timout - Timeout in milliseconds for loading table data.
189
+ * @param options.bodyRowOptions.cellContentType - The content type for the body rows.
190
+ * @returns A promise that resolves to an array of body rows.
191
+ */
192
+ getBodyRows(options?: Pick<LoadOptions, "timeout" | "bodyRowOptions">): Promise<BodyRow[]>;
193
+ /**
194
+ * Retrieves a specific cell locator in the body of the table.
195
+ * @param rowNumber - The row number (0-based index).
196
+ * @param headerPosition - The header position (0-based index).
197
+ * @returns A Playwright Locator for the specified cell.
198
+ */
55
199
  getBodyCellLocator(rowNumber: number, headerPosition: number): Locator;
56
- getBodyCellLocatorByRowConditions(conditions: Record<string, string>, targetHeader: string, options?: {
57
- timeout?: number;
58
- duplicateSuffix?: boolean;
59
- colspanEnabled?: boolean;
60
- }): Promise<Locator>;
61
- getAllBodyCellLocatorsByHeaderName(header: string, options?: {
62
- timeout?: number;
63
- }): Promise<Locator[]>;
64
- getAllBodyCellLocatorsByHeaderIndex(headerIndex: number): Promise<Locator[]>;
65
- getJson(options?: {
66
- timeout?: number;
67
- }): Promise<any>;
68
- waitForHeaderRows(options?: {
69
- timeout?: number;
70
- row?: {
71
- amount?: number;
72
- cell?: {
73
- totalCount?: number;
74
- contentCount?: number;
75
- };
76
- };
77
- }): Promise<void>;
78
- waitForBodyRows(options?: {
79
- timeout?: number;
80
- row?: {
81
- amount?: number;
82
- cell?: {
83
- totalCount?: number;
84
- contentCount?: number;
85
- };
86
- };
87
- }): Promise<void>;
200
+ /**
201
+ * Retrieves a cell locator in the body of the table based on row conditions and a target header.
202
+ * @param conditions - A record of header names and their expected values.
203
+ * @param targetHeader - The target header name for the desired cell.
204
+ * @param options - See {@link LoadOptions} for available options.
205
+ * @returns A promise that resolves to a Playwright Locator for the matching cell.
206
+ * @throws An error if no matching row is found or if a header is not found.
207
+ */
208
+ getBodyCellLocatorByRowConditions(conditions: Record<string, string>, targetHeader: string, options?: LoadOptions): Promise<Locator>;
209
+ /**
210
+ * Retrieves all cell locators in the body of the table for a specific header name.
211
+ * @param header - The header name.
212
+ * @param options - See {@link LoadOptions} for available options.
213
+ * @returns A promise that resolves to an array of Playwright Locators for the cells.
214
+ * @throws An error if the header is not found.
215
+ */
216
+ getAllBodyCellLocatorsByHeaderName(header: string, options?: LoadOptions): Promise<Locator[]>;
217
+ /**
218
+ * Retrieves all cell locators in the body of the table for a specific header index.
219
+ * @param headerIndex - The header index (0-based).
220
+ * @param options - See {@link LoadOptions} for available options.
221
+ * @returns A promise that resolves to an array of Playwright Locators for the cells.
222
+ */
223
+ getAllBodyCellLocatorsByHeaderIndex(headerIndex: number, options?: LoadOptions): Promise<Locator[]>;
224
+ /**
225
+ * Converts the table data into a JSON object.
226
+ * @param options - See {@link LoadOptions} for available options.
227
+ * @returns A promise that resolves to a JSON representation of the table.
228
+ */
229
+ getJson(options?: LoadOptions): Promise<any>;
230
+ /**
231
+ * Waits for the header rows to be loaded.
232
+ * @param options - See {@link WaitForTableRowsOptions} for available options.
233
+ * @returns A promise that resolves when the header rows are loaded.
234
+ */
235
+ waitForHeaderRows(options?: WaitForTableRowsOptions): Promise<void>;
236
+ /**
237
+ * Waits for the body rows to be loaded.
238
+ * @param options - See {@link WaitForTableRowsOptions} for available options.
239
+ * @returns A promise that resolves when the body rows are loaded.
240
+ */
241
+ waitForBodyRows(options?: WaitForTableRowsOptions): Promise<void>;
88
242
  private load;
243
+ private mainHeaderRow;
89
244
  }
90
245
 
91
- export { type BodyRow, type Cell, CellContentType, type HeaderRow, type HeaderRowOptions, PlaywrightTable };
246
+ export { type BodyRow, type Cell, CellContentType, type HeaderRow, type HeaderRowOptions, type LoadOptions, PlaywrightTable, type WaitForTableRowsOptions };