Skip to content

Add TestBenchElement.$$ search function which only considers direct children #1888

@mvysny

Description

@mvysny

The TestBenchElement.$ function considers all descendants, which is sometimes not what we want.

For example, in #1886 I want to select the form item's label, but accidentally TextField's label element gets selected.

Workaround: call TestBenchElement.findElements(By.xpath("label"));.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done / Pending Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions