How to execute xpath function to extract classes

I wish to read all the class names of a div; for example: <div class="class1 class2 class3">

I have a xpath function that works fine:
string(//*[@id="content-wrap"]/div[7]/div/div/div/div/div[1]/@class)

>> "class1 class2 class3"

I’ve tested in Chrome using:

$x('string(//*[@id="content-wrap"]/div[7]/div/div/div/div/div[1]/@class)')

All good.

But how to use in Kantu?

I used a querySelectorAll as a workaround in the end:

executeScript | document.querySelectorAll(\".list-item\")[0].className | classNames

But it’ll still be interesting to learn the answer to the original question for future reference (if there is one).

Read means extract? or count?

Yes, extract.

(ignore, more characters …)