I am using Protractor and I want to know the number of children from an element.
The element I have is a table element.
let table = element(by.css('#myTable'));
Try to get all child
tr tags from the table and use
count() method to get the number of rows present.
let table = element(by.css('#myTable')); let rowCount = table.all(by.css("tr")).count()