I am currently working on extracting the number of rows in an ag-grid. The table is structured as follows:
<div class="ag-body-container" role="presentation" style="height: 500px; top: 0px; width: 1091px;">
<div role="row" row-index="0" row-id="0" comp-id="134" class="ag-row ag-row-no-focus ag-row-even ag-row-no-animation ag-row-level-0" style="height: 50px; top: 0px; ">
<div role="row" row-index="1" row-id="1" comp-id="140" class="ag-row ag-row-no-focus ag-row-odd ag-row-no-animation ag-row-level-0" style="height: 50px; top: 50px; ">
<div role="row" row-index="2" row-id="2" comp-id="146" class="ag-row ag-row-no-focus ag-row-even ag-row-no-animation ag-row-level-0" style="height: 50px; top: 100px; ">
<div role="row" row-index="3" row-id="3" comp-id="152" class="ag-row ag-row-no-focus ag-row-odd ag-row-no-animation ag-row-level-0" style="height: 50px; top: 150px; ">
<div role="row" row-index="4" row-id="4" comp-id="158" class="ag-row ag-row-no-focus ag-row-even ag-row-no-animation ag-row-level-0" style="height: 50px; top: 200px; ">
There are additional rows with the same characteristics under different div elements, making it challenging to directly count rows with a specific class.
Any assistance on this matter would be highly appreciated.