title: findIndex() method issue with internet explorer
body: <p>I am doing some tests with differents browsers using the <a href="https://metacpan.org/pod/Selenium::Remote::Driver" rel="noreferrer"><code>Selenium::Remote::Driver</code></a> module.</p>
  
  <p>I would like to check if I find some item in my web site list, list from a framework JavaScript (which  creates grids). For this case I have to use JavaScript snippet allowed by <code>Selenium::Remote::Driver</code>.</p>
  
  <p>I wrote the following code</p>
  
  <pre><code>$script = q{
  
        var paramProgramName = arguments[0];
  
        var list  = $('#c-list').dxList('instance');
        var items = list.option('items');
        var index = items.findIndex(function(el){ return el.name == paramProgramName; });
  
        list.selectItem(index);
  
        return ;
  };
  
  $driver-&gt;execute_script($script, $programName);
  </code></pre>
  
  <p>It works fine with Chrome and Firefox but not with Internet Explorer because the <code>findIndex</code> method is only supported by version 12 and following. For some reason I have to use version 11.</p>
  
  <p>What can I do differently to get an index from every browser?</p>