Is there a way to extract the value from the following HTML element using Webdriver-IO for automated testing?
<div class="metric-value ng-binding"
ng-style="{'font-size': vis.params.fontSize+'pt'}" style="font-size: 60pt;">
84
</div>
I attempted to do so with the code snippet below:
element(by.binding('**')).getText().then(function (value) {
console.log(value);
})
Unfortunately, this approach did not yield the desired result.