title: Protractor Not able to click the element While iterating the list of Elements
body: <p>clickClaimIDFromList(claimId) {</p>
  
  <pre><code>   element.all(by.xpath('//*[@data-qa="dashboard.claim"]')).then(async (items) =&gt; {
              // console.log(items[0].getText());
              await expect(items[0].getText()).to.eventually.equal('12345');
  
              items.forEach(item =&gt; {
                       item.getText().then(async (text) =&gt; {
                              if (text === '12345') {
                                  await console.log(item.getText());
                                  await this.wait(10000);
                                  return item.click();
                              }
                          }
                      );
                  }
              );
          }
  
  
       );
  
  }
  </code></pre>
  
  <p>This code is getting executed successfully with out clicking the element. Could some one help me to rewrite it?</p>