automation_model 1.0.32 → 1.0.33
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 -1
- package/package.json +1 -1
package/bin/stable_browser.js
CHANGED
|
@@ -191,7 +191,11 @@ class StableBrowser {
|
|
|
191
191
|
try {
|
|
192
192
|
let element = await this._locate(selector, info, _params);
|
|
193
193
|
await this._screenShot(options);
|
|
194
|
-
await element.
|
|
194
|
+
let foundText = await element.textContent();
|
|
195
|
+
if (!foundText.includes(text)) {
|
|
196
|
+
throw new Error("element doesn't contain text " + text);
|
|
197
|
+
}
|
|
198
|
+
//await expect(element).toContainText(text, { timeout: 10000 });
|
|
195
199
|
//fill(value, { timeout: 10000 });
|
|
196
200
|
//await element.dispatchEvent("change");
|
|
197
201
|
return info;
|