Skip to content
Advertisement

How do i use/print the value inside a generic attribute in TestCafe

What I’m trying to do is print/use the value of the Polyline attribute.

JavaScript

I’ve tried to get them with these methods:

This is an util function

JavaScript

This is inside the test script

JavaScript

or

JavaScript

And I include my selectors external

JavaScript

But all I get is a promise as output in the console log

Promise { }

or

ReExecutablePromise { _then: [], _fn: [Function], _taskPromise: null }

Any help is appreciated!

Advertisement

Answer

You should await the call inside the console.log:

JavaScript

or

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement