Forum Xamarin Test Cloud (Read Only)

[Android only] Tap is not working on "CachedImageView"

mjprmjpr Member ✭✭

Our app has an "CachedImageView" with automationID - "imgBack" & "imgNext". Tapping on "imgBack" shows calendar of previous month and tapping on "imgNext" shows calendar of next month. For some reason, when I use "app.Tap(x=>x.Marked("imgBack")/("imgNext"), it taps somewhere in the UI button doesn't change the calendar month. Note that the issue is only on Android. on iOS it works fine.
Heres's the repl tree, XAML and screenshot.
[LabelRenderer] label: "lblMonthTarget_Container"
[FormsTextView] id: "NoResourceEntry-114", label: "lblMonthTarget", text: "April Target (0/20 days completed)"
[CachedImageRenderer] label: "imgBack_Container"
[CachedImageView] id: "NoResourceEntry-115", label: "imgBack"
[SfCalendarRenderer] label: "calendar_Container"

<ffimageloadingsvg:SvgCachedImage x:Name="imgBack" AutomationId="imgBack" Rotation="270" Source="greenUpDown.svg" VerticalOptions="CenterAndExpand"> <ffimageloadingsvg:SvgCachedImage.GestureRecognizers> <TapGestureRecognizer Tapped="Previous_Tapped"/> </ffimageloadingsvg:SvgCachedImage.GestureRecognizers> </ffimageloadingsvg:SvgCachedImage>

Not sure if this is a bug in UITest but would like to know if there is any invoke method that I can use to tap on the element?
Your help is much appreciated.

Cal.jpeg 268.1K
Sign In or Register to comment.