Bug 26476 - Xamarin.Forms.Cell does not trigger Forms.ViewInitialized event
Summary: Xamarin.Forms.Cell does not trigger Forms.ViewInitialized event
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-27 14:50 UTC by Sami M. Kallio
Modified: 2015-07-05 23:26 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample solution that reproduces the issue. (172.61 KB, application/zip)
2015-02-09 17:18 UTC, Sami M. Kallio
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Sami M. Kallio 2015-01-27 14:50:06 UTC
Cell views cannot be automated for UI testing due to the event not being fired. Even if the cell has StyleId it cannot be assigned to native view field for UI automation.
Comment 1 Arpit Jha 2015-02-08 23:39:06 UTC
We have checked this issue and unable to reproduce this issue at our end .

Could you please provide us Sample Project,Build Info,Xamarin.Forms version,Xamarin.UItest version,Xamarin Test Cloud Agent version, So that we can able to reproduce at our end.
Comment 2 Sami M. Kallio 2015-02-09 17:18:34 UTC
Created attachment 9726 [details]
Sample solution that reproduces the issue.

Forms.ViewInitialized, in both iOS AppDelegate and Android MainActivity, does not fire up for any of the table cells nor the views inside them.

The output for the Debug.WriteLine(e.View) for iOS and Android respectively:

2015-02-09 17:02:08.211 StyleIdBug.iOS[1097:410303] Xamarin.Forms.TableView
Xamarin.Forms.TableView
2015-02-09 17:02:12.238 StyleIdBug.iOS[1097:410303] Xamarin.Forms.ContentPage
Xamarin.Forms.ContentPage
2015-02-09 17:02:12.241 StyleIdBug.iOS[1097:410303] Xamarin.Forms.ContentPage
Xamarin.Forms.ContentPage


Xamarin.Forms.TableView
Xamarin.Forms.ContentPage
Comment 3 Jason Smith [MSFT] 2015-03-05 07:04:36 UTC
Only VisualElements are initialized through the ViewInitialized event.
Comment 4 Sami M. Kallio 2015-03-05 09:03:29 UTC
How do you assign automation id's to cell views then?
Comment 5 Kent 2015-07-05 23:26:36 UTC
Why is this resolved? There's an outstanding question here: how are automation IDs assigned to cell views?