I have a problem with getting a text from elements on a web page. I'm using TestCafe e2e framework and want to print the contents of a text web element to console. Can you provide some code?
const getInnerText = ClientFunction(() => homePage.kzLink.innerText);
console.log(getInnerText());
what i get:
ReExecutablePromise { _then: [], _fn: [Function], _taskPromise: null }