title: JavaScript Executor for weblist element using selenium webdriver
body: <p>This code for an element to click using JavaScript Executor </p>
  
  <pre><code>((JavascriptExecutor) driver).executeScript("arguments[0].click()", driver.findElement(By.linkText("Update")));
  </code></pre>
  
  <p>But I am creating <code>List&lt;WebElement&gt;</code> for an element </p>
  
  <pre><code>List&lt;WebElement&gt; text = driver.findElements(By.className("btnstyle greenbtn"));
  text.get(1).click();
  </code></pre>
  
  <p>Is possible JavaScript Executor for web list element to click according to index value. </p>