18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Validating Div rows
I have a case where I need to get all the rows within the div and validate each row that has some child divs with some values.
I need to get the div with id = page and get the list of rowcontainers and for each row container ,i have to read child divs and validate the text within them ?
Any idea what is the best approach to do this ? I have lot of pages that have the same structure .I want to use Sahi to automate this .
<div id ="page">
<div class="rowContainer">
<div class="colText custCol">
</div>
<div class="colText Name">John Smith1</div>
<div class="colText Contact">1234569802</div>
<div class="colText SalesPerson">1234982 - contact name</div>
</div>
<div class="rowContainer">
<div class="colText custCol">
</div>
<div class="colText Name">John Dow</div>
<div class="colText Contact">1234569802</div>
<div class="colText SysID">1234982 - contact name</div>
</div>
<div class="rowContainer">
<div class="colText custCol">
</div>
<div class="colText Name">Smith Joe</div>
<div class="colText Contact">1234569802</div>
<div class="colText SysID">1234982 - contact name</div>
</div>
</div>
I need to get the div with id = page and get the list of rowcontainers and for each row container ,i have to read child divs and validate the text within them ?
Any idea what is the best approach to do this ? I have lot of pages that have the same structure .I want to use Sahi to automate this .
<div id ="page">
<div class="rowContainer">
<div class="colText custCol">
</div>
<div class="colText Name">John Smith1</div>
<div class="colText Contact">1234569802</div>
<div class="colText SalesPerson">1234982 - contact name</div>
</div>
<div class="rowContainer">
<div class="colText custCol">
</div>
<div class="colText Name">John Dow</div>
<div class="colText Contact">1234569802</div>
<div class="colText SysID">1234982 - contact name</div>
</div>
<div class="rowContainer">
<div class="colText custCol">
</div>
<div class="colText Name">Smith Joe</div>
<div class="colText Contact">1234569802</div>
<div class="colText SysID">1234982 - contact name</div>
</div>
</div>