DPB1Class · Game state and actions

Element

A game-interface element. Inspect text, visibility, geometry and child elements; follow the individual members for their signatures and result types. Prefer a named panel wrapper when one is available.

Namespace: DreamPoeBot.Loki

public class Element
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

FindTextInElementChildrens

MethodLink ↗
public Element Element.FindTextInElementChildrens(string text)

Searches this element and its descendants for the first whole-text match, ignoring letter case. Returns the matching Element, or null when no match is found. This reads the existing UI tree; it does not open a panel or click the result.

Return type: Element
Explore Element → members & methods

A game-interface element. Inspect text, visibility, geometry and child elements; follow the individual members for their signatures and result types. Prefer a named panel wrapper when one is available.

Parameters

text
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies text.

Returns: The Element result.

Examples for this member

Only examples explicitly associated with this declaration are shown.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Find a child with matching text

public static DreamPoeBot.Loki.Element FindLabel(
    DreamPoeBot.Loki.Element root, string text)
{
    if (root == null || string.IsNullOrEmpty(text))
        return null;

    return root.FindTextInElementChildrens(text);
}

Supply the current UI root and the text to search for. This returns the existing search helper's result; it does not open a panel or interact with a match. Check the returned element before reading it. Matching and visibility behavior belong to the selected product's implementation; do not treat this as a search of every object in the area.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.