automation_model 1.0.17 → 1.0.18
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 +3 -3
- package/package.json +1 -1
package/bin/stable_browser.js
CHANGED
|
@@ -66,7 +66,7 @@ class StableBrowser {
|
|
|
66
66
|
async click(selector) {
|
|
67
67
|
for (let i = 0; i < selector.length; i++) {
|
|
68
68
|
try {
|
|
69
|
-
await (await this._locate(selector[i], this.page)).click();
|
|
69
|
+
await (await this._locate(selector[i], this.page)).click({ timeout: 10000 });
|
|
70
70
|
return;
|
|
71
71
|
} catch (e) {
|
|
72
72
|
if (i === selector.length - 1) {
|
|
@@ -80,7 +80,7 @@ class StableBrowser {
|
|
|
80
80
|
for (let i = 0; i < selector.length; i++) {
|
|
81
81
|
try {
|
|
82
82
|
let element = await this._locate(selector[i], this.page);
|
|
83
|
-
await element.fill(value);
|
|
83
|
+
await element.fill(value, { timeout: 10000 });
|
|
84
84
|
await element.dispatchEvent("change");
|
|
85
85
|
return;
|
|
86
86
|
} catch (e) {
|
|
@@ -95,7 +95,7 @@ class StableBrowser {
|
|
|
95
95
|
for (let i = 0; i < selector.length; i++) {
|
|
96
96
|
try {
|
|
97
97
|
const element = await this._locate(selector[0], this.page);
|
|
98
|
-
await expect(element).toHaveCount(1);
|
|
98
|
+
await expect(element).toHaveCount(1, { timeout: 10000 });
|
|
99
99
|
return;
|
|
100
100
|
} catch (e) {
|
|
101
101
|
if (i === selector.length - 1) {
|