grabAttributeFrom() method not returning the attribute value

I am trying to get attribute value of an element by using I.grabAttributeFrom() method but I always get undefined instead of attribute value. My codes are

Scenario(‘Smoketest’, async (I) => {
.
.
.
const columnIndex = await I.grabAttributeFrom(’//th[text()=“Status”]’, ‘aria-colindex’);
.
.
});

The element is like that

<th aria-colindex = "2">
"Status"
<span> ... </span>
</th>

And I am using testcafe.

I think there is a fix for Puppeteer helper -> https://github.com/Codeception/CodeceptJS/pull/2059

@peterngtr I assume @rashed is using TestCafe as helper. There was a bug in the code which will be released with upcoming codeceptjs version.