automation_model 1.0.52 → 1.0.53
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/bin/stable_browser.js +5 -3
- package/package.json +1 -1
package/bin/stable_browser.js
CHANGED
|
@@ -270,18 +270,20 @@ class StableBrowser {
|
|
|
270
270
|
throw e;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
async analyzeTable(selector,
|
|
273
|
+
async analyzeTable(selector, query, operator, value, _params = null, options = {}) {
|
|
274
274
|
const info = {};
|
|
275
275
|
info.log = [];
|
|
276
276
|
info.operation = "analyzeTable";
|
|
277
277
|
info.selector = selector;
|
|
278
|
-
info.
|
|
278
|
+
info.query = query;
|
|
279
|
+
query = this._fixUsingParams(query, _params);
|
|
280
|
+
info.query_fixed = query;
|
|
279
281
|
info.operator = operator;
|
|
280
282
|
info.value = value;
|
|
281
283
|
try {
|
|
282
284
|
let table = await this._locate(selector, info, _params);
|
|
283
285
|
await this._screenShot(options);
|
|
284
|
-
const cells = await getTableCells(this.page, table,
|
|
286
|
+
const cells = await getTableCells(this.page, table, query, info);
|
|
285
287
|
|
|
286
288
|
if (cells.error) {
|
|
287
289
|
throw new Error(cells.error);
|