appium-flutter-driver icon indicating copy to clipboard operation
appium-flutter-driver copied to clipboard

enableFlutterDriverExtension() in main.dart stops keyboard, if i remove it appium-flutter-driver is showing handshaking issue

Open GarimaVats opened this issue 5 years ago • 16 comments
trafficstars

GarimaVats avatar Jan 02 '20 12:01 GarimaVats

@GarimaVats EnableFlutterDriverExtention is mandatory for the automation. Please reach the dev team it may be due to dart version compatibility issue.

shibupanda avatar Jan 03 '20 08:01 shibupanda

@shibupanda, can you give an example of dart, flutter working versions?

lsuhov avatar Jan 03 '20 14:01 lsuhov

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 avatar Feb 02 '20 11:02 truongsinh

@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

shibupanda avatar Feb 02 '20 12:02 shibupanda

@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.

GarimaVats avatar Feb 04 '20 02:02 GarimaVats

@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 avatar Feb 10 '20 05:02 truongsinh

@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)

ahashmi24 avatar Feb 12 '20 16:02 ahashmi24

So let me see if I understand you correctly, here's the reproducing step:

  1. open app
  2. switch to Flutter context
  3. select text box
  4. send some keystrokes
  5. switch to native context
  6. send some keystrokes

It is at the 6th step that you are blocked?

truongsinh avatar Feb 19 '20 05:02 truongsinh

@truongsinh Yes, it is throwing an exception on 6th step.

ahashmi24 avatar Mar 03 '20 19:03 ahashmi24

@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.

shibupanda avatar Aug 01 '20 10:08 shibupanda

@truongsinh
Hello,

Do you have any news please?

dvyAb avatar Dec 17 '21 08:12 dvyAb

Do you have any news please? ?

yahyakara avatar Oct 06 '22 18:10 yahyakara

Respected @shibupanda any update for the "enableFlutterDriverExtension() in main.dart and stops keyboard and unable to enter any text into textfield" issue

anu-09-stack avatar Oct 18 '23 06:10 anu-09-stack

has anyone found a solution to this issue yet?

SushmaVB2512 avatar Dec 17 '23 07:12 SushmaVB2512

has anyone found a solution for this yet?

mustafahawari avatar Jan 21 '24 08:01 mustafahawari

Any solution on this ?

kritika333 avatar Apr 29 '24 04:04 kritika333

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

KazuCocoa avatar Jun 16 '24 05:06 KazuCocoa