title: Need help using xpath in Karate UI
body: <p>I'm facing issue in using xpath while running KarateUi test</p>
  <pre><code>Feature: testRun
      Scenario: google search
      Given driver 'http://google.com'
      Then waitForUrl('https://google.com')
      When if(locate(&quot;//input[@name='q']&quot;).exists) 
      input(&quot;//input[name='q']&quot;,'testing')
      And click('input[name=btnK]')
      Then waitFor('{h3}Software testing - Wikipedia')
  </code></pre>
  <p>I get the below error</p>
  <pre><code>javascript evaluation failed: if(locate(&quot;//input[@name='q']&quot;).exists) input(&quot;//input[name='q']&quot;,'testing'), failed to get reply for: [id: 8, method: Runtime.evaluate, params: {expression=var e = document.evaluate(&quot;//input[name='q']&quot;, document, null, 9, null).singleNodeValue; e.focus(); try { e.selectionStart = e.selectionEnd = e.value.length } catch(x) {}, returnByValue=true}]
  </code></pre>
  <p>I would appreciate if some one can help me with what's missing in the above scenario</p>
  <p>Thanks
  Vivek</p>