-
-
Notifications
You must be signed in to change notification settings - Fork 185
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 flutter driver hangs without response when executing click command #557
Comments
|
After pulling my hair for hours I found the problem, but I have no logical explanation for it. I put a breakpoint and paused the test before the This works This does not work(it hangs as described) The difference between the two requests is the The attributes and values are exactly the same, but they are in different order. I cannot even think of a reason why parsing a JSON would cause hanging/issue because of specific attributes order. @KazuCocoa Any thoughts and suggestions? |
interesting... then potentially https://github.com/ashwithpoojary98/javaflutterfinder/blob/master/src/main/java/io/github/ashwith/flutter/FlutterFinder.java#L29-L48 ? https://github.com/search?q=repo%3Aappium%2Fappium-flutter-driver%20keyValueType&type=code is possible relevant code in this repository. Then, what about |
@KazuCocoa I just noticed that the attribute values are not the same. BUT, another question arises - why the Flutter driver doesn't throw I tried to use |
Hey guys, I also faced with this problem... flutter driver stuck on executing any command on Dart VM side.... I assume that something wrong on Dart VM side but don't know how to get it's logs or any other helpful information |
This is because the current (original) implementation waits for the response by the DartVM, that's it. It looks like the original implementation's base design. So like #430 , each request perhaps can have timeout to the Dart VM to respond like no such element error in case no response by the Dart VM by the timeout. I'm not sure then also the Dart VM can accept another new request (e.g. the previous command blocks some Dart VM procedure), but maybe such timeout can be added. (PRs are welcome) |
@TripleG check your locator value. |
I have a very simple experimental test for Flutter driver. I just want to try to click an element in a flutter app.
I am using
https://github.com/ashwithpoojary98/javaflutterfinder
as Java client for flutter elements:I am running the test on a physical device. The application is started successfully, but the
click()
command hangs without any response and I wait 600 seconds until the HTTP client throws timeout exception:Here is the full appium log:
The interesting part of the log:
The
click
command is sent successfully, it looks good. The locator is 100% correct.But after the HTTP client timeout, the
DELETE
command is sent, because of the@AfterMethod
cleanup.I have few questions in general:
click
command hangs - it doesn't throw "not found element", nor "unable to click" or something. It just hangs.keep-alive
nornewCommandTimeout
timeouts stop the execution? I need to wait600
seconds for the HTTP client timeout. Is there a way to configure smaller timeout of theorg.asynchttpclient.netty.request.NettyRequestSender
?The text was updated successfully, but these errors were encountered: