How would I get all 10 comments located in this page with a loop or a Puppeteer function https://www.tripadvisor.com/Restaurant_Review-g294308-d3937445-Reviews-Maki-Quito_Pichincha_Province.html using innerText property?

The only solution I have come up with is getting the outerHTML of the whole container of comments and then try to substring to get all the comments, but that is not optimal and I think its a more difficult approach. Maybe there is an easier solution in Puppeteer I cant find?

我这样做是出于教育目的 . 评论在 class="partial_entry" 中,我想得到一个Dynamic Html标签的innerText(我想要全部10个),就像你在这里看到的那样:

如果我在哪里打开包含 <div class="review-container" data-reviewid="606551292" data-collapsed="true" data-deferred="false"><!--trkN:3--> 的div,我会得到另一个 id="review_582693262" . 说到这一点,如果我到 <div>class="partial_entry" 这将是我的评论所在的位置 . 我尝试过一些东西,但是我得到了null,因为找不到它,因为每个注释的父 <div> 都有一个像 id="review_xxxxxxxxx" 这样的唯一ID .

它有点困难,因为审查ID是 autogeneratedid="review_xxxxxxxxx" 并且无法循环复制CSS路径,因为我没有静态父 .