locked
Xamarin.Android uitest can no longer do Entertext or use the softkeyboard RRS feed

  • Question

  • User350777 posted

    Hi All

    Is anyone else having issues with uitest in Android being unable to enter text ?

    Th unit test launches, I see it tapping buttons and tapping the Edittext fields one by one, but no text input.

    This was working fine a week ago.

    I have developed the App being tested, but not changed the unit test Solution.

    I now need to work backwards, but was wondering if this is a know issue

    Thanks

    Monday, August 24, 2020 1:54 PM

Answers

  • User382871 posted

    Which api did you use for the project? There seems to be the issue to use the App.EnterText function on Android api 29 or above.

    Check the link: https://github.com/microsoft/appcenter/issues/1451

    Here is a workaround, you could check it. Related link. app.Query(e => e.Marked("the_id").Invoke("setText", "content"));

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, August 25, 2020 6:35 AM

All replies

  • User350777 posted

    Hi All,

    I made a new hello world template app, and a new uitest solution and tested them against each other, same result

    Monday, August 24, 2020 6:02 PM
  • User382871 posted

    Which api did you use for the project? There seems to be the issue to use the App.EnterText function on Android api 29 or above.

    Check the link: https://github.com/microsoft/appcenter/issues/1451

    Here is a workaround, you could check it. Related link. app.Query(e => e.Marked("the_id").Invoke("setText", "content"));

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, August 25, 2020 6:35 AM
  • User350777 posted

    Thanks, that worked

    Tuesday, August 25, 2020 11:40 AM