Results 1 to 3 of 3

Thread: Unable to traverse a grid

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Mar 2017

    Default Answered: Unable to traverse a grid

    Type: WebDriver
    ExtJS version:
    Browser: Chrome v67

    I have a single column grid that can have 1 or more levels nested in a tree. When a row is clicked an additional form is displayed in second container to the right the page. I need the ability to traverse all levels of the tree so I can complete the form for each level.

    I can locate the first row and click on the first "+" icon to expand the top level of the tree then select the second row beneath it but I'm unable to expand the tree past that point.


    The code that will expand the first row then select the "Parent" row which activates the form. I need it to expand the "Parent" row to access the child beneath it.

    describe('click the tree now', function() {
                it('Should select the first facility from the list', function() {
                    var grid = ST.grid('HCOTreeViewPanel treepanel[reference="FacilityGroupTreePanel"]');
                        .element('//div[contains(@class, "x-tree-expander")]')
                        .click() ; 
                        .element('//div[contains(@class, "x-tree-elbow-img x-tree-elbow-plus x-tree-expander")]')

  2. Try something like this, using ".down" to find the expander in the row. Using ".element" will find an element anywhere in the page - ".down" finds a child element of the row.

    // Scenario URL:
    describe('Tree', function() {
        it('Should select and expand tree nodes', function() {
            var grid = ST.grid('treepanel[title="Files"]');
            grid.rowWith('text', 'app')
            grid.rowWith('text', 'bindinspector')
            grid.rowWith('text', 'noconflict')
            grid.rowWith('text', 'BaseModel.js');

Similar Threads

  1. How do I traverse grids
    By RameshM in forum Q&A
    Replies: 11
    Last Post: 30 May 2017, 2:18 PM
  2. Extjs4 how to traverse the grid line
    By lqjack in forum Ext: Q&A
    Replies: 1
    Last Post: 15 Jun 2012, 9:07 PM
  3. Traverse components by this.up and this.down
    By ctp in forum Ext: Discussion
    Replies: 1
    Last Post: 21 Aug 2011, 9:52 PM
  4. Traverse DOM Element to get Component Id
    By mrinaljena in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 6 Nov 2009, 10:33 AM
  5. Dom traverse problem
    By steffenk in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 27 Apr 2009, 6:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts