how to get multiple link under-class tag,HTML contain multiple multiple class tag="blog-item-wrap" each tag contain tag . need to get all the href links under-clas's tag
<div class="blog-item-wrap">
<a href="https://website.com/data-wrangling-with/" title="Data
Wrangling with JavaScript">
</a>
</div>
<div .... >
<div class="blog-item-wrap">
<a href="https://website.com/data-wrangling-with/" title="Data
Wrangling with JavaScript">
</a>
</div>
</div>
using this and getting error:
StaleElementReferenceError: stale element reference: element is not attached to the page document
browser.findElement(By.xpath('//*[@class="blog-item-wrap"]/a')).then(res => { res.getText().then(text => { console.log('text', text); }).catch(err => { console.log('err', err); });