Skip to content

Very slow object recognition when using longer or gapped XPaths #180

Open
@JonasBeiTXS

Description

@JonasBeiTXS

We are experiencing very long object recognition times when using XPaths that contain "gaps".

Previously we used something like this:

FlaUILibrary.Click    identifier=//Button[@Name="loadingButton"]

Object recognition was pretty much instant.

But now we sometimes have the same loading button on screen multiple times. Therefore we need to differentiate and reference a unique parent container. This is our current solution:

FlaUILibrary.Click    identifier=//Pane[@AutomationId="leftPane"]//Button[@Name="loadingButton"]

In this case leftPane is the closest reliably identifiable parent element. The object tree would look something like this:

tree

When using these longer XPaths, load times are about 30s per button, which seems excessive.

This is just one example. We have many other cases, where using the end of an XPath is very fast, but incorporating parent elements slows down object recognition considerably.

Is this known behavior? Can we do anything to speed up object recognition (on the automation side of things)?

Filling the "gap" like this did not yield any noticable improvements:

FlaUILibrary.Click    identifier=//Pane[@AutomationId="leftPane"]/Pane/Pane/ToolBar/Button[@Name="loadingButton"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions