Skip to main content

Element text is

True when the element's text (or a field's value) equals, contains, starts with or matches the text (right away, or within the wait).

Condition in the Browser toolkit · id ooa.browser/element_text · 8 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Captured objectDictionaryNoThe captured object from Capture or Pick in OneAgentStudio: the element's properties to match (each with use and a match rule: equals, not_equals, contains, starts_with, ends_with, wildcard or regex), search_by (properties, css or xpath), index and iframes. Used instead of the selector when given.
SelectorStringNoElement selector, used when no captured object is given: CSS (#id, .class), text="Sign in", role=button[name="Save"] or xpath=//input[@name='q'].
TextStringYesText to compare with.
MatchStringNoequalsHow the text is compared; matches takes a regular expression.
Ignore caseBooleanNotrueUpper and lower case count as the same.
Wait (seconds)NumberNo0Wait up to this many seconds for it to become true (0 checks once, right away).
SessionStringNobrowserSession name.
WindowDictionaryNoWhich window to act in. Leave empty to use the session's current tab. {"source": "browser", "title": "Invoice * - Shop", "title_match": "wildcard", "url": "...", "url_match": "contains", "browser": "edge"} switches to the first open tab whose title and/or address matches (also in attached browsers, and in one listening on port 9222); {"source": "variable", "variable": "session name"} uses that browser session; {"source": "application", "title": "..."} names a desktop window, which works only when it is a window of an attached browser. Matches: wildcard (default for the title), contains (default for the address), equals or regex; text matches ignore case. Values may use variables.