Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:30:06+00:00 2026-06-14T15:30:06+00:00

I am testing my ExtJs App with Jasmine. So there are no views involved.

  • 0

I am testing my ExtJs App with Jasmine. So there are no views involved.

I want to expand several nodes, but first my root node. But even expanding that node fails.

I create my TreeStore, then:

Code:

// oStore is my treestore, everything OK
// Here, I also tried calling oStore.load(); see below

var oNode = oStore.getNodeById( 'root' );

// oNode.isExpanded() says false
// oNode.hasChildNodes() says false

oNode.expand(false, function(oChildren) {
    // it never gets here
    console.log( "hello?");
});

My listener for load gets called, but the listener for beforeexpand does not get called.

If I call oStore.load() at the beginning after store creation, then when the on load listener gets called it says, oNode.childNodes.length has 3 children…

  1. So why is expand()‘s callback not called? How can I get that node to expand?

  2. Why are the children of the node already loaded when calling oStore.load()? After that expand() is also not fired.


EDIT:

Starting my root node with expanded: true makes my store collapse correctly on collapse(), but after it expand() does nothing.

oNode.collapse(false, function() {
   console.log( "collapse()" ); // works, but expand() afterwards does not
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:30:07+00:00Added an answer on June 14, 2026 at 3:30 pm

    Found the solution. I need to wait for the store to get loaded. Is is a Jasmine issue:

    runs( function() {
             oStore.on( 'load', function() {
                bStoreLoaded = true;
             });
          });
    
    waitsFor( function() {
             return bStoreLoaded; 
          }, " store to be loaded", 5000 );
    
    runs( function() {
             oNode.expand(false, function( aoChildren ) {
                aoChildrenRoot = aoChildren;
                bRootExpanded = true;
             });
          });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing an extjs web app by using robotframework and selenium2library, but I
I have been using Selenium a lot lately (testing an ExtJs app) and while
I am testing a extjs-based web applaction with robotframework and selenium2library,but I can not
Testing several plus feeds - Made my own app from this post which gives
In testing an app, I keep getting errors that occur sporadically on only one
For testing purposes I want to use Jetty 8 to serve only static content.
When testing my GPS tracking application, there is a problem with another GPS tracking
I'm testing an Extjs application in selenium and I need to run a Script
Testing my app on some WM Std 6.1 I found out that it fails
While testing my in-app-purchases, I am receiving these in my console for both attached

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.