Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Getting unexpected result when using element.all(by.xpath()) to read table data #5447

@akbbhatt

Description

@akbbhatt

My application contains two mat-tables on it.
I would like to read the table data from my second table

await this.secondTableElement.all(by.xpath(//tr[${rowIndex}]/td[${columnIndex}]));

but this statement actually provides me the data from the first table and not from the secondtableElement. I believe when you execute all() method under a parent element, protractor is supposed to search under this element and not from the very beginning of the HTML document.

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