I'm a newbie in protractor.
I've written a test with Selenium in Java and everything is OK.

But now, i need to do the same test in protractor and it driving me crazy!

I've to check the numbre of element by tagName in my page.

My code is something like this :

```
    // Click on a button
    element(by.id('e2e-idAutomate')).click();
    // Wait for the next page to be present
    var isPresent0 = EC.visibilityOf(element(by.tagName('ngx-carousel')));
    var isPresent1 = EC.visibilityOf(element(by.tagName('cmyardneo-action-button')));

    var condition = EC.and(isPresent0, isPresent1);
    browser.wait(condition, 5000);

    // Ok, here i want to chek the number of div by tagName

    // First try!
    expect<any>(element.all(by.tagName("div"))).toContain(40); 
    // Doesn't work... Fall in timeout!

    // Second try
    element.all(by.tagName("div")).then((liste) => {   //Same Problem, fall in timeout
        expect<any>(liste.length).toBe(40);   
    });

```

How can i read the liste return by the element.all?

Thanks!