@rickcedwhat/playwright-smart-table 6.0.0 → 6.1.0
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/src/useTable.js +2 -3
- package/package.json +1 -1
package/dist/src/useTable.js
CHANGED
|
@@ -349,9 +349,8 @@ const useTable = (rootLocator, configOptions = {}) => {
|
|
|
349
349
|
getRowByIndex: (index, options = {}) => {
|
|
350
350
|
if (!_isInitialized || !_headerMap)
|
|
351
351
|
throw new Error('Table not initialized. Call await table.init() first, or use async methods like table.findRow() or table.getRows() which auto-initialize.');
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
return _makeSmart(rowLocator, _headerMap, rowIndex);
|
|
352
|
+
const rowLocator = resolve(config.rowSelector, rootLocator).nth(index);
|
|
353
|
+
return _makeSmart(rowLocator, _headerMap, index);
|
|
355
354
|
},
|
|
356
355
|
findRow: (filters, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
357
356
|
(0, debugUtils_1.logDebug)(config, 'info', 'Searching for row', filters);
|