-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appium log hangs forever when it gets to Executing Flutter driver command 'click'
#181
Comments
I have the exact same issue :/ |
It looks like appium flutter driver was not able to get any responses from the DartVM(Flutter) because the DartVM side got stuck(?). So appium-flutter-driver kept waiting for the response... |
I was actually able to solve this by sending flutter:EnterText via driver.execute_script. After that it would no longer halt on tab |
I have the same issue. For me commands like Here is a cutout from the appium server log:
|
I just found out that if I use byText as finder I can click an element. But I am sure that the value key is correct because I checked it in the render tree. |
I have no good idea, sorry. |
Hi - in my case test is stuck at click on elemenet itself so cannot reach flutter:entertext step. How did you manage to focus on element before flutter:enterText? Appium server logs below where it stuck [HTTP] {"id":"eyJrZXlWYWx1ZVR5cGUiOiJTdHJpbmciLCJrZXlWYWx1ZVN0cmluZyI6ImtleV90ZXh0X2ZpZWxkX290cCIsImZpbmRlclR5cGUiOiJCeVZhbHVlS2V5In0="} |
@vbhvkthr1 Instead of using it: Use it: It is a workaround, but It is not a good practice to use text attribute to find elements. |
This behavior seems to be coming inside DartVM/Flutter. Close as not in this driver itself. |
I solved this problem and identified the root cause. By default, Flutter Driver waits until there is no pending frame scheduled in the app under test before executing an action. Because of this, some interactions such as click() may not work properly. To counter it, we use setFrameSync() function before and after the desired action. So with that, the code would be:
|
@liammrharris liammrharris c was this resolved? can you please share the solution. |
Appium log hangs forever when it gets to
Executing Flutter driver command 'click'
.The app launches fine. Then the last two lines I see are:
[debug] [FlutterDriver] Executing Flutter driver command 'click' [debug] [FlutterDriver] >>> {"command":"tap","finderType":"ByValueKey","keyValueString":"contact-button","keyValueType":"String"}
Below is the appium log from the point where flutter driver is first mentioned. I could post the entire log.
Does this mean…
At the moment, I am quite clueless as to how to troubleshoot this.
The text was updated successfully, but these errors were encountered: