Search Results for

    Show / Hide Table of Contents

    TextBlock

    A TextBlock is a simple content control that displays text in a readonly state.

    Legerity provides an element wrapper for the TextBlock implementation providing a simple abstraction that exposes the text value.

    public TextBlock ContentTextBlock => App.FindElementByAutomationId("ContentTextBlock");
    
    var content = ContentTextBlock.Text;
    

    Platform Support

    Platform Supported
    Windows ✓
    Android ✗
    iOS ✗
    WebAssembly ✓

    Properties

    Name Type Description
    Text string The content of the TextBlock
    Driver RemoteWebDriver The instance of the driver for the app
    Element RemoteWebElement The original reference object
    IsEnabled bool Whether the element is enabled
    IsVisible bool Whether the element is visible

    For more information, view the reference documentation: TextBlock

    • Improve this Doc
    In This Article
    Back to top Copyright (c) MADE Apps