Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

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.