Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7fe7de3f
Commit
7fe7de3f
authored
Apr 20, 2016
by
Yegor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[driver] fix a race in finder logic (#3444)
parent
fffbf6e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
extension.dart
packages/flutter_driver/lib/src/extension.dart
+8
-1
No files found.
packages/flutter_driver/lib/src/extension.dart
View file @
7fe7de3f
...
...
@@ -120,7 +120,14 @@ class FlutterDriverExtension {
Future
<
Health
>
getHealth
(
GetHealth
command
)
async
=>
new
Health
(
HealthStatus
.
ok
);
/// Runs [locator] repeatedly until it finds an [Element] or times out.
Future
<
Element
>
_waitForElement
(
String
descriptionGetter
(),
Element
locator
())
{
Future
<
Element
>
_waitForElement
(
String
descriptionGetter
(),
Element
locator
())
async
{
// Short-circuit if the element is already on the UI
Element
element
=
locator
();
if
(
element
!=
null
)
{
return
element
;
}
// No element yet, so we retry on frames rendered in the future.
Completer
<
Element
>
completer
=
new
Completer
<
Element
>();
StreamSubscription
<
Duration
>
subscription
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment