title: Find elements in webpage using Selenium in Jmeter
body: <p>I want to do testing using selenium webdriver in Jmeter. And i was using <code>By.linkText</code> to find an element, and assert whether the element exists or not.</p>
  <pre><code>var elements = WDS.browser.findElements(pkg.By.linkText(&quot;Tools&quot;));
  eval(elements.length != 0);
  </code></pre>
  <p>But it seems if replace 'Tools' with any other string like 'asfasdsa' it will return True, and my test is passing. It seems <code>By.linkText</code> doesnt work in JMeter. Is there any other alternate way to find an element in webpage other than <code>By.id</code>??</p>
  <p>Also, is this a good way to verify whether an element is present?</p>