Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Xamarin.UITest is not able to enter text for Acr.UserDialogs box on Samsung Devices

Posted on November 11, 2022 By

Solution 1 :

I was able to repro and test your scenario with the Acr.UserDialogs. App.SetText doesn’t work as the item is not focused and as I already figured out, you need to use a query.
My query doesn’t work because e.Id(“custom”) is not an EditText element but its container. So modifying query to app.Query(e => e.Id(“custom”).Descendant().Invoke(“setText”, string.Empty)) does work.

Problem :

I am having an issue where both app.ClearText() and app.EnterText() is not working for Acr.UserDialogs box on Samsung Devices (see attached screenshot) however works on Pixel. I am not sure what I can do to work around this, I have already tried to use [![app.Query(e => e.Id("custom").Invoke("setText", string.Empty))][1]][1] and this is not working as well. I have found no way that Xamarin.UITest is able to change the text of these dialog boxes and I am really hoping there is a workaround or something I am missing. Thank you for your help in advance

enter image description here

Comments

Comment posted by Maverick1st

You just saved me hours of bug hunting. Many many thanks for this simple, yet effective solution.

READ  [FIXED] android - Convert DocumentReference to string format
Powered by Inline Related Posts
Android Tags:android, xamarin.android, xamarin.uitest

Post navigation

Previous Post: [FIXED] android – W/Firestore: (24.1.2) [CustomClassMapper]: No setter/field for about found on class
Next Post: [FIXED] android – FusedLocationProviderClient and LocationCallback() object queries

Related Posts

[FIXED] How to unzip, unpack and convert android rootfs to ext4 Android
[FIXED] java – How to link an other xml file to the main_activity.xml in android and to access it? Android
[FIXED] Sign in With Apple – Android Implementation with Firebase Android
[FIXED] android – How to set colorControlHighlight (ripple color) for all the icons inside toolbar programmatically? Android
[FIXED] java – Android project build issue Android
[FIXED] Why is Android transliterating my Cyrillic language values to equivalent Latin values? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme