Skip to content

Better difference description when using ElementSelectors.byNameAndAttributes #93

@maciekwiso

Description

@maciekwiso

It'd be useful if difference description for a node that used node matcher with specific attributes, like this:
.withNodeMatcher(new DefaultNodeMatcher(
ElementSelectors.conditionalBuilder()
.whenElementIsNamed("SomeElem").thenUse(ElementSelectors.byNameAndAttributes("Attr1", "Attr2"))
.elseUse(ElementSelectors.byName).build()

would also have those attributes' values, like this:
Expected child 'SomeElem' but was 'null' - comparing <SomeElem Attr1="theValue1" Attr2="theValue2"...> at /RootElem[1]/SomeElem[16] to (DIFFERENT)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions