By::Id

Creates a new element locator that limits its discovered elements to ones with the specified Id, starting from the Root element given to the function

Windows
MacOS
Linux

References

Module

AutomationDriver

Header

/Engine/Source/Developer/AutomationDriver/Public/LocateBy.h

Include

#include "LocateBy.h"

Source

/Engine/Source/Developer/AutomationDriver/Private/LocateBy.cpp

Syntax

static TSharedRef< IElementLocator, ESPMode::ThreadSafe > Id
(
    const FDriverElementRef & Root,
    const FName & Value
)

Remarks

Creates a new element locator that limits its discovered elements to ones with the specified Id, starting from the Root element given to the function

Returns

a locator which uses the specified Id to discover appropriate elements

Parameters

Parameter

Description

Root

The reference to the element where the search will be started from

Value

The MetaData ID of the element to find