@winning-test/component 0.0.32 → 0.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.
|
@@ -31,7 +31,7 @@ class SelectComponent extends require("./Component") {
|
|
|
31
31
|
* @param {...String} items 选项
|
|
32
32
|
*/
|
|
33
33
|
async select(...items) {
|
|
34
|
-
let count =
|
|
34
|
+
let count = 2;
|
|
35
35
|
while (count > 0) {
|
|
36
36
|
try {
|
|
37
37
|
await this._select(...items);
|
|
@@ -46,7 +46,7 @@ class SelectComponent extends require("./Component") {
|
|
|
46
46
|
} catch (error) {
|
|
47
47
|
if (count > 1) {
|
|
48
48
|
count--;
|
|
49
|
-
await this.browser.sleep(
|
|
49
|
+
await this.browser.sleep(500);
|
|
50
50
|
} else {
|
|
51
51
|
throw error;
|
|
52
52
|
}
|
|
@@ -31,7 +31,7 @@ class SelectComponent extends require("./Component") {
|
|
|
31
31
|
* @param {...String} items 选项
|
|
32
32
|
*/
|
|
33
33
|
async select(...items) {
|
|
34
|
-
let count =
|
|
34
|
+
let count = 2;
|
|
35
35
|
while (count > 0) {
|
|
36
36
|
try {
|
|
37
37
|
await this._select(...items);
|
|
@@ -46,7 +46,7 @@ class SelectComponent extends require("./Component") {
|
|
|
46
46
|
} catch (error) {
|
|
47
47
|
if (count > 1) {
|
|
48
48
|
count--;
|
|
49
|
-
await this.browser.sleep(
|
|
49
|
+
await this.browser.sleep(500);
|
|
50
50
|
} else {
|
|
51
51
|
throw error;
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ class SelectComponent extends require("./Component") {
|
|
|
30
30
|
* @param {...String} items 选项
|
|
31
31
|
*/
|
|
32
32
|
async select(...items) {
|
|
33
|
-
let count =
|
|
33
|
+
let count = 2;
|
|
34
34
|
while (count > 0) {
|
|
35
35
|
try {
|
|
36
36
|
await this._select(...items);
|
|
@@ -42,7 +42,7 @@ class SelectComponent extends require("./Component") {
|
|
|
42
42
|
} catch (error) {
|
|
43
43
|
if (count > 1) {
|
|
44
44
|
count--;
|
|
45
|
-
await this.browser.sleep(
|
|
45
|
+
await this.browser.sleep(500);
|
|
46
46
|
} else {
|
|
47
47
|
throw error;
|
|
48
48
|
}
|