AutomationId not detected on SwitchCell and EntryCell

I have the following XAML file:

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage AutomationId="SettingsPage" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="barcode.Pages.SettingsPage">
    <ContentPage.Content>
        <TableView Intent="Settings" AutomationId="SettingsTable">
            <TableView.Root>
            <TableSection Title="Integration Server">
                <SwitchCell AutomationId="UseHttps" Text="Use Https" On="{Binding UseHttps}"/>
                <EntryCell AutomationId="ServerUrl" Label="Server Address" Placeholder="integrarion.example.com" Text="{Binding ServerUrl}" Keyboard="Url"/>
            </TableSection>
            </TableView.Root>
        </TableView>
    </ContentPage.Content>
</ContentPage>

In REPL (and of course in UITest), I can see the AutomationID for TableView and ContentPage, but not for SwitchCell and EntryCell.

>>> tree                                                                        
[[object CalabashRootView] > PhoneWindow$DecorView]                               [LinearLayout > FrameLayout]                                                  
    [FitWindowsFrameLayout] id: "action_bar_root"
      [ContentFrameLayout > ... > PlatformRenderer] id: "content"
        [NavigationPageRenderer] id: "NoResourceEntry-1"
          [PageContainer] id: "NoResourceEntry-11"
            [PageRenderer] id: "NoResourceEntry-9",  label: "SettingsPage"
              [TableViewRenderer] label: "SettingsTable_Container"
                [ListView] id: "NoResourceEntry-10",  label: "SettingsTable"
                  [ConditionalFocusLayout]
                    [TextCellRenderer_TextCellView > LinearLayout]
                      [TextView] text: "Integration Server"
                    [View]
                  [ConditionalFocusLayout]
                    [SwitchCellView]
                      [LinearLayout]
                        [TextView] text: "Use Https"
                      [Switch]
                    [View]
                  [ConditionalFocusLayout]
                    [EntryCellView]
                      [TextView] text: "Server Address"
                      [EntryCellEditText]
                    [View]
          [Toolbar > AppCompatImageButton] id: "toolbar"
  [View] id: "statusBarBackground"
  [View] id: "navigationBarBackground"

Can anyone help with this, please?

Answers

Sign In or Register to comment.