title: Test Cafe - Getting error on clicking link which is invisible using Client Function
body: <p>I have to click on a button that is invisible in <code>Html</code>. I tried using Client Function but I am getting an error for the element </p>
  
  <pre><code>import { Selector,ClientFunction } from 'testcafe';
  fixture('Clicking Invisible link').page('http://example.com');
  
  test('Click on invisible link', async t =&gt; {
    const viewProgram = Selector('tbody [viewBox]').nth(0);
    const clickViewProgram = ClientFunction(() =&gt; viewProgram().click());
    await clickViewProgram(); 
  });
  </code></pre>
  
  <p>The Error that I am getting is :</p>
  
  <blockquote>
    <p>An error occurred in ClientFunction code: ReferenceError: viewProgram
    is not defined</p>
  </blockquote>
  
  <p>Please help me in resolving this issue</p>