automation_model 1.0.56 → 1.0.57
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 +1 -1
- package/package.json +1 -1
package/bin/stable_browser.js
CHANGED
|
@@ -217,7 +217,7 @@ class StableBrowser {
|
|
|
217
217
|
foundText = await this.getText(selector, _params, options, info);
|
|
218
218
|
let escapedText = text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
219
219
|
pattern = pattern.replace("{text}", escapedText);
|
|
220
|
-
let regex = new RegExp(pattern);
|
|
220
|
+
let regex = new RegExp(pattern, "m");
|
|
221
221
|
if (!regex.test(foundText)) {
|
|
222
222
|
info.foundText = foundText;
|
|
223
223
|
throw new Error("element doesn't contain text " + text);
|