title: Triggering click event on li element in phantomjs
body: <p>How come my function does not trigger the click event in phantomjs but it does in the chrome browser? On an li element specifically. </p>
  
  <pre><code>if(page.injectJs("./jquery-2.1.4.min.js") == false){
                      console.log("jquery Failed")
                  }
                  var sizePicked = page.evaluate(function(){
                      var Elements = document.getElementsByTagName("li");
                      for(i = 0; i &lt; Elements.length; i++){
                          if (Elements[i].innerHTML.toLowerCase().indexOf("10") !== -1) {
                              $(Elements[i]).trigger("click");
                              break;
                          }
                      }
                  })
  </code></pre>
  
  <p>This is the site I'm working <a href="http://kithnyc.com/collections/asics/products/asics-gel-lyte-iii-christmas" rel="nofollow">on</a>.</p>