title: How do i use/print the value inside a generic attribute in TestCafe
body: <p>What I'm trying to do is print/use the value of the <a href="https://www.w3schools.com/graphics/svg_polyline.asp" rel="nofollow noreferrer">Polyline</a> attribute.</p>
  
  <pre><code>&lt;Polyline points="x,y x,y x,y x,y"&gt;
  </code></pre>
  
  <p>I've tried to get them with these methods:</p>
  
  <p>This is an util function</p>
  
  <pre><code>export const getPointAttribute = async () =&gt; {
    const polyline = s.polyline;
    const polylineData = ClientFunction(() =&gt; polyline().attributes, {
      dependencies: { polyline }
    });
    return polylineData 
  }
  </code></pre>
  
  <p>This is inside the test script</p>
  
  <pre><code>test('', async (t) =&gt; {
     console.log(u.getPointAttribute())
  }
  </code></pre>
  
  <p>or </p>
  
  <pre><code>test('', async (t) =&gt; {
     console.log(s.polyline.getAttribute('points'));
  }
  </code></pre>
  
  <p>And I include my selectors external</p>
  
  <pre><code>import * as s from '../utilities/selectors';
  </code></pre>
  
  <p>But all I get is a promise as output in the console log</p>
  
  <blockquote>
    <p>Promise {  }</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>ReExecutablePromise { _then: [], _fn: [Function], _taskPromise: null }</p>
  </blockquote>
  
  <p>Any help is appreciated! </p>