@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.
@@ -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 rowIndex = index - 1; // Convert 1-based to 0-based
353
- const rowLocator = resolve(config.rowSelector, rootLocator).nth(rowIndex);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rickcedwhat/playwright-smart-table",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Smart, column-aware table interactions for Playwright",
5
5
  "author": "Cedrick Catalan",
6
6
  "license": "MIT",