@TPS_Reports
Thanks for responding,
Yes. The Selector in my snippet is just a sample.
Then, you're having problem with selector, right?
Could you post your html which contains that "a href" element?
sure it's possible.
These may be helpful
# html
<html>
<div id = "footer">
<a href = "someUrl">About</a>
<a href = "store.google.com/abc/xyz">Store</a>
</div>
</html>
# testcafe
// get href value of "a" element by index
const x = await Selector('a').nth(1).getAttribute('href');
// get href value of "a" element by inner text
const x = await Selector('a').withText('Store').getAttribute('href');
// restrict the scope in case you has more "a href" element
const x = await Selector('#footer').find('a').nth(1).getAttribute('href');