18 January 2026:


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.

Unable to click first checkbox using parentNode

Manish PatniManish Patni Members
edited November -1 in Sahi - Open Source
1. Navigate to "dev.sencha.com/deploy/ext-4.0.7-gpl/examples/grid/grid-plugins.html"

2. Frame:
Framed with Checkbox Selection and Horizontal Scrolling

3. Below line of code will give first row, Company column cell value:
var $div = _div(0, _near(_div("x-grid-row-checker[0]")), _under(_span("Company[1]").parentNode));
_alert(_getText($div));

4. Similarly I want to click first check box using parent header checkbox.
var $div = _div(0, _near(_div("x-grid-row-checker[0]")), _under(_span("gridcolumn-1046-textEl").parentNode));
_click($div);

Note: _click(_div("x-grid-row-checker[0]")); is working if there is only one grid in a page but if there are two grid and first grid contain unknown number of rows then how we click first row of second grid.
Can anyone please help me to automate this extjs scenario.
Sign In or Register to comment.