puppeteer get number of rows

I’m trying to get a number of rows with a list of these class names for some reason I keep getting a null as a return. How can I get a list of rows with this chain list of classes?

enter image description here

My code

        const alternativeRowsCounts = await page.$$eval(
            '.ExResult-row > .ExResult-row--relatedExercises > .flexo-container > .flexo-between',
            element => element.innerText //i've also tried rows instead of elements but still got null
//            (rows) => rows.length 
        );
        console.log(`Number of rows = ${alternativeRowsCounts}`)

Bigger section of the DOM

<section class="ExDetail-section ExDetail-related">
      <h3 class="ExHeading ExHeading--h3">
        Alternative Exercises for Dumbbell Bench Press
      </h3>
        <div class="ExResult-row ExResult-row--relatedExercises flexo-container flexo-between" itemscope="" itemtype="http://schema.org/ExerciseAction">
          <div class="ExResult-cell ExResult-cell--imgs ">
                <!-- using male photos -->
                <img class="ExImg ExResult-img  ls-is-cached lazyloaded" width="70" height="70" onerror="if (window._E_) _E_(this)" alt="Barbell Bench Press - Medium Grip thumbnail image" src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-81e-bench-press-m1-square-600x600.jpg" data-src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-81e-bench-press-m1-square-600x600.jpg" itemprop="image">
                <!-- using male photos -->
                <img class="ExImg ExResult-img  ls-is-cached lazyloaded" width="70" height="70" onerror="if (window._E_) _E_(this)" alt="Barbell Bench Press - Medium Grip thumbnail image" src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-81e-bench-press-m2-square-600x600.jpg" data-src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-81e-bench-press-m2-square-600x600.jpg" itemprop="image">
          </div>
          <div class="ExResult-cell ExResult-cell--nameEtc">
            <h3 class="ExHeading ExResult-resultsHeading">
              <a href="/exercises/barbell-bench-press-medium-grip" itemprop="name">
                Barbell Bench Press - Medium Grip
              </a>
            </h3>
            <div class="ExResult-details ExResult-muscleTargeted">
              Muscle Targeted:
              <a href="/exercises/muscle/chest">
                Chest
              </a>
            </div>
            <div class="ExResult-details ExResult-equipmentType">
              Equipment Type:
              <a href="/exercises/equipment/barbell">
                Barbell
              </a>
            </div>
          </div>
          <div class="ExResult-cell ExResult-cell--rating">
            <div class="ExRating">
              <div class="ExRating-badge">
                9
              </div>
              <div class="ExRating-description ExRating-description--Average">
                Average
              </div>
            </div>
          </div>
        </div>        <div class="ExResult-row ExResult-row--relatedExercises flexo-container flexo-between" itemscope="" itemtype="http://schema.org/ExerciseAction">
          <div class="ExResult-cell ExResult-cell--imgs ">
                <!-- using male photos -->
                <img class="ExImg ExResult-img  ls-is-cached lazyloaded" width="70" height="70" onerror="if (window._E_) _E_(this)" alt="Incline dumbbell bench press thumbnail image" src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-3n-incline-dumbbell-bench-press-m1-square-600x600.jpg" data-src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-3n-incline-dumbbell-bench-press-m1-square-600x600.jpg" itemprop="image">
                <!-- using male photos -->
                <img class="ExImg ExResult-img  ls-is-cached lazyloaded" width="70" height="70" onerror="if (window._E_) _E_(this)" alt="Incline dumbbell bench press thumbnail image" src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-3n-incline-dumbbell-bench-press-m2-square-600x600.jpg" data-src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-3n-incline-dumbbell-bench-press-m2-square-600x600.jpg" itemprop="image">
          </div>
          <div class="ExResult-cell ExResult-cell--nameEtc">
            <h3 class="ExHeading ExResult-resultsHeading">
              <a href="/exercises/incline-dumbbell-press" itemprop="name">
                Incline dumbbell bench press
              </a>
            </h3>
            <div class="ExResult-details ExResult-muscleTargeted">
              Muscle Targeted:
              <a href="/exercises/muscle/chest">
                Chest
              </a>
            </div>
            <div class="ExResult-details ExResult-equipmentType">
              Equipment Type:
              <a href="/exercises/equipment/dumbbell">
                Dumbbell
              </a>
            </div>
          </div>
          <div class="ExResult-cell ExResult-cell--rating">
            <div class="ExRating">
              <div class="ExRating-badge">
                9.1
              </div>
              <div class="ExRating-description ExRating-description--Average">
                Average
              </div>
            </div>
          </div>
        </div>        <div class="ExResult-row ExResult-row--relatedExercises flexo-container flexo-between" itemscope="" itemtype="http://schema.org/ExerciseAction">
          <div class="ExResult-cell ExResult-cell--imgs ">
                <!-- using male photos -->
                <img class="ExImg ExResult-img  ls-is-cached lazyloaded" width="70" height="70" onerror="if (window._E_) _E_(this)" alt="Kettlebell alternating floor press thumbnail image" src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-6k-kettlebell-alternating-floor-press-m1-square-600x600.jpg" data-src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-6k-kettlebell-alternating-floor-press-m1-square-600x600.jpg" itemprop="image">
                <!-- using male photos -->
                <img class="ExImg ExResult-img  ls-is-cached lazyloaded" width="70" height="70" onerror="if (window._E_) _E_(this)" alt="Kettlebell alternating floor press thumbnail image" src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-6k-kettlebell-alternating-floor-press-m2-square-600x600.jpg" data-src="https://www.bodybuilding.com/images/2020/xdb/cropped/xdb-6k-kettlebell-alternating-floor-press-m2-square-600x600.jpg" itemprop="image">
          </div>
          <div class="ExResult-cell ExResult-cell--nameEtc">
            <h3 class="ExHeading ExResult-resultsHeading">
              <a href="/exercises/alternating-floor-press" itemprop="name">
                Kettlebell alternating floor press
              </a>
            </h3>
            <div class="ExResult-details ExResult-muscleTargeted">
              Muscle Targeted:
              <a href="/exercises/muscle/chest">
                Chest
              </a>
            </div>
            <div class="ExResult-details ExResult-equipmentType">
              Equipment Type:
              <a href="/exercises/equipment/kettlebells">
                Kettlebells
              </a>
            </div>
          </div>
          <div class="ExResult-cell ExResult-cell--rating">
            <div class="ExRating">
              <div class="ExRating-badge">
                6
              </div>
              <div class="ExRating-description ExRating-description--Average">
                Average
              </div>
            </div>
          </div>
        </div>    </section>

    ```

163 thoughts on “puppeteer get number of rows”

  1. It’s appropriate time to make some plans for the future and it is
    time to be happy. I’ve read this post and if I could I wish to suggest you some interesting things or advice.
    Perhaps you can write next articles referring
    to this article. I wish to read more things about it!

    Reply
  2. Simply wish to say your article is as amazing. The clarity to your put up is simply spectacular and i could suppose you’re knowledgeable in this subject. Fine along with your permission let me to grasp your feed to keep updated with approaching post. Thank you one million and please keep up the gratifying work.

    Reply
  3. It is the best time to make some plans for the future
    and it is time to be happy. I’ve read this post and if I could I desire
    to suggest you few interesting things or advice. Maybe you can write next articles referring to this article.

    I desire to read even more things about it!

    Reply
  4. Hi would you mind sharing which blog platform you’re working with?

    I’m looking to start my own blog in the near future but I’m having a difficult time choosing between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique.
    P.S Apologies for getting off-topic but I had to ask!

    Reply
  5. It’s perfect time tto mwke some lans for tthe future and
    it’s tim to bee happy. I have read this post aand iff I couild I wixh tto suggest youu
    some intereeting things oor tips. Maye yoou coould wrfite next articles refeering
    too tyis article. I desre tto read mire thingbs abouit it!

    Reply
  6. It is the best time to make some plans for
    the future and it’s time to be happy. I have read this post and if I could I wish to suggest you few interesting things or suggestions.
    Perhaps you could write next articles referring to this article.
    I desire to read even more things about it!

    Reply
  7. I’ve been surfing on-line more than three hours lately,
    but I by no means discovered any attention-grabbing article
    like yours. It’s lovely worth enough for me. In my view, if all web owners and bloggers made good
    content material as you probably did, the web shall be much more helpful than ever before.

    Reply
  8. Hey! Someone in my Facebook group shared this website with us so
    I came to look it over. I’m definitely enjoying the information. I’m bookmarking
    and will be tweeting this to my followers!

    Great blog and amazing design.

    Reply
  9. It is perfect time to make a few plans for the future and it is time to be happy.
    I have learn this publish and if I may I wish to counsel you few attention-grabbing things or suggestions.
    Maybe you could write next articles regarding this article.
    I desire to learn even more issues approximately it!

    Reply
  10. Howdy would you mind letting me know which hosting company you’re working with?
    I’ve loaded your blog in 3 completely different browsers
    and I must say this blog loads a lot faster then most.
    Can you recommend a good web hosting provider at a fair price?
    Thanks a lot, I appreciate it!

    Reply
  11. I’ll right away grab your rss feed as I can’t find your e-mail subscription hyperlink or newsletter
    service. Do you’ve any? Kindly let me know so that I may subscribe.
    Thanks.

    Reply
  12. Hello, i read your blog occasionally and i own a similar one
    and i was just curious if you get a lot of spam remarks?

    If so how do you prevent it, any plugin or anything you can advise?
    I get so much lately it’s driving me insane so any assistance is very much appreciated.

    Reply
  13. I’ve been surfing online more than 4 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. Personally, if all webmasters and bloggers made good content as
    you did, the net will be much more useful than ever
    before.

    Reply
  14. I have been browsing online more than 3 hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. In my view, if
    all site owners and bloggers made good content as you did, the
    net will be a lot more useful than ever before.

    Reply
  15. It’s perfect time to make a few plans for
    the longer term and it is time to be happy. I have read this submit and if
    I may I desire to counsel you some fascinating things
    or advice. Perhaps you could write subsequent articles relating to this article.
    I desire to read more things about it!

    Reply
  16. It is appropriate time to make a few plans for the future
    and it is time to be happy. I have read this post and if I may just I desire to recommend you few attention-grabbing things or advice.
    Maybe you could write next articles relating to this
    article. I desire to learn even more things approximately it!

    Reply
  17. Pingback: sildenafil coupon
  18. Pingback: viagra pill
  19. Pingback: viagrahati
  20. Pingback: sildenafil
  21. Woah! I’m really loving the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s very
    hard to get that “perfect balance” between superb usability and visual
    appearance. I must say you’ve done a excellent job with this.
    In addition, the blog loads extremely fast for me on Internet explorer.
    Superb Blog!

    Reply
  22. Pingback: herbal cialis
  23. Pingback: viagra cialis
  24. Pingback: cialis tadalafil
  25. Pingback: canada viagra
  26. Pingback: viagra connect
  27. Pingback: cialis oral
  28. Pingback: viagra coupon
  29. Pingback: mail order cialis
  30. Pingback: split viagra pills
  31. Pingback: buy cialis
  32. Pingback: buy viagra online
  33. Pingback: sildenafil citrate
  34. Pingback: womens viagra
  35. Pingback: free viagra
  36. Pingback: female viagra pill
  37. Pingback: viagra sildenafil
  38. Pingback: viagra users group
  39. Pingback: viagra dosages
  40. Pingback: what is viagra
  41. Pingback: viagra usa
  42. Pingback: sildenafil pills
  43. Pingback: roman sildenafil
  44. Pingback: herbal viagra
  45. Pingback: viagra for sale
  46. Pingback: black cialis
  47. Pingback: viagra for male

Leave a Comment