Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 489d067

Browse files
fix(keywords): Add multiplier to timeout
Transform to seconds
1 parent f58cbea commit 489d067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎AppiumFlutterLibrary/keywords/_waiting.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def wait_for_element(self, locator, timeout=20):
2121
if timeout is None:
2222
application.execute_script('flutter:waitFor', element.id)
2323
else:
24-
application.execute_script('flutter:waitFor', element.id, timeout)
24+
application.execute_script('flutter:waitFor', element.id, timeout*1000)
2525
except Exception:
2626
raise AssertionError("Could not find element '%s' in %s seconds" % (locator, timeout))
2727

@@ -39,7 +39,7 @@ def wait_for_element_absent(self, locator, timeout=20):
3939
if timeout is None:
4040
application.execute_script('flutter:waitForAbsent', element.id)
4141
else:
42-
application.execute_script('flutter:waitForAbsent', element.id, timeout)
42+
application.execute_script('flutter:waitForAbsent', element.id, timeout*1000)
4343
except Exception:
4444
raise AssertionError("Element '%s' still not absent in %s seconds" % (locator, timeout))
4545

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /