automation_model 1.0.54 → 1.0.55

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.
@@ -198,7 +198,12 @@ class StableBrowser {
198
198
  }
199
199
  let element = await this._locate(selector, info, _params);
200
200
  await this._screenShot(options);
201
- return await element.innerText();
201
+ try {
202
+ return await element.innerText();
203
+ } catch (e) {
204
+ this.logger.info("no innerText will use textContent");
205
+ return await element.textContent();
206
+ }
202
207
  }
203
208
  async containsPattern(selector, pattern, text, _params = null, options = {}) {
204
209
  const info = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "An automation infrastructure module to be use for generative AI automation projects.",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",