docs.unity3d.com
    Show / Hide Table of Contents

    Class ElementQuery

    Inheritance
    Object
    ElementQuery
    Namespace: Unity.AutomatedQA
    Syntax
    public class ElementQuery : MonoBehaviour

    Properties

    ElementPool

    Declaration
    public List<GameObject> ElementPool { get; set; }
    Property Value
    Type Description
    List<GameObject>

    Instance

    Declaration
    public static ElementQuery Instance { get; }
    Property Value
    Type Description
    ElementQuery

    Methods

    ConstructQuerySelectorString(GameObject)

    Create a query string to find an object in playback.

    Declaration
    public static string ConstructQuerySelectorString(GameObject go)
    Parameters
    Type Name Description
    GameObject go
    Returns
    Type Description
    String

    Find(String)

    Use supplied query selector string to identify a matching GameElement.

    Declaration
    public static GameObject Find(string querySelector)
    Parameters
    Type Name Description
    String querySelector
    Returns
    Type Description
    GameObject

    FindAll(String)

    Use supplied query selector string to identify a matching GameElement.

    Declaration
    public static List<GameObject> FindAll(string querySelector)
    Parameters
    Type Name Description
    String querySelector
    Returns
    Type Description
    List<GameObject>

    GetAllActiveGameObjects()

    Declaration
    public List<GameObject> GetAllActiveGameObjects()
    Returns
    Type Description
    List<GameObject>

    RegisterElement(GameElement)

    Puts a new GameElement into the limited pool of GameObjects that have been registered as being of interest to Automated Testing.

    Declaration
    public void RegisterElement(GameElement el)
    Parameters
    Type Name Description
    GameElement el

    ValidatePropertiesAndAttributes(GameElement)

    Declaration
    public void ValidatePropertiesAndAttributes(GameElement el)
    Parameters
    Type Name Description
    GameElement el
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023