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

mjprmjpr Member ✭✭
edited April 16 in Xamarin Test Cloud

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.
REPL Tree
[Platform_DefaultRenderer]
[LabelRenderer] label: "lblMonthTarget_Container"
[FormsTextView] id: "NoResourceEntry-114", label: "lblMonthTarget", text: "April Target (0/20 days completed)"
[Platform_DefaultRenderer]
[CachedImageRenderer] label: "imgBack_Container"
[CachedImageView] id: "NoResourceEntry-115", label: "imgBack"
[SfCalendarRenderer] label: "calendar_Container"


XAML:
<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.
Thanks!

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