Skip to content

Better difference description when using ElementSelectors.byNameAndAttributes #93

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions