appium-flutter-driver
appium-flutter-driver copied to clipboard
enableFlutterDriverExtension() in main.dart stops keyboard, if i remove it appium-flutter-driver is showing handshaking issue
@GarimaVats EnableFlutterDriverExtention is mandatory for the automation. Please reach the dev team it may be due to dart version compatibility issue.
@shibupanda, can you give an example of dart, flutter working versions?
v1.12.13+hotfix.7 or v1.9.1+hotfix.6 should both work. If it's not working for you, can you report the device and OS you are using?
@truongsinh it seems it's already reported in flutter community nothing to do in Appium flutter driver. I have tried with latest dart and flutter version. https://github.com/flutter/flutter/issues/15415
@truongsinh I tried almost all appium enter key function. I was using appium 1.16.0. I used it for both android and iOS devices and both OS Mac and windows.
@truongsinh I tried almost all appium enter key function. I was using appium 1.16.0. I used it for both android and iOS devices and both OS Mac and windows.
From https://github.com/flutter/flutter/issues/15415#issuecomment-581532972, looks like @jonahwilliams meant we have to have the solution ourselves. @GarimaVats can you describe the reason you need to interact with on-screen keyboard while running a appium session on your app-under-test?
@truongsinh it blocks us to use sendKeys() function on android/iOS native.
There must be a scenario where we have to use sendKeys() to handle any native element in android or iOS (e.g XCUIElementTypePickerWheel)
So let me see if I understand you correctly, here's the reproducing step:
- open app
- switch to Flutter context
- select text box
- send some keystrokes
- switch to native context
- send some keystrokes
It is at the 6th step that you are blocked?
@truongsinh Yes, it is throwing an exception on 6th step.
@truongsinh looks like @jonahwilliams added caveats for this. https://github.com/flutter/flutter/pull/50017. Whether we need to add it in our README file as well.
@truongsinh
Hello,
Do you have any news please?
Do you have any news please? ?
Respected @shibupanda any update for the "enableFlutterDriverExtension() in main.dart and stops keyboard and unable to enter any text into textfield" issue
has anyone found a solution to this issue yet?
has anyone found a solution for this yet?
Any solution on this ?
The keyboard itself does not appear as the flutter_driver lib behavior. So far, sending keys via uia2/xcuitest native context could be a workaround as this driver https://github.com/appium/appium-flutter-driver/issues/607#issuecomment-1774184865