Forum Xamarin Test Cloud (Read Only)

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.


Can anyone help with this, please?

Answers

Sign In or Register to comment.