title: Python splinter(Selenium) issue clicking menu link with Javascript
body: <p>I'm trying to click a link in a frame with Splinter.  When I try by id, name, text, xpath it says element does not exist.  I tried to get all elements, but it also said could not be found.  </p>
  
  <pre><code>import splinter
  
  executable_path = {'executable_path':'C:\\code\\chromedriver-2.29\\chromedriver'}
  web1 = splinter.Browser('chrome', **executable_path)
  
  url = ""
  ipAddr = '192.168.168.168'
  web1.visit('https://' + ipAddr + '/' + url)
  
  with web1.get_iframe('outlookFrame') as iframe2:
              IDs = iframe2.find_elements_by_xpath('//*[@id]')
              for items in IDs:
                  print items
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>AttributeError: 'WebDriver' object has no attribute 'find_elements_by_xpath'
  </code></pre>
  
  <p>I tried running execute_script(), that didnt work either.  I've put many hours with different approaches, but I cant figure it out.</p>
  
  <pre><code>with web1.get_iframe('outlookFrame') as iframe2:
              javaScript = 'toggleTree("pnl10","usersStatusView.html");'
              web1.execute_script(javaScript)
  raise exception_class(message, screen, stacktrace)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>selenium.common.exceptions.WebDriverException: Message: unknown error: Cannot read property 'location' of undefined
  </code></pre>
  
  <p>This is the menu I am working with. I am trying to get splinter to open usersSettingsView.html.  I cant open it directly from url as it breaks the config process, I have to use the menu.  I am looking for a recommendation on best approach because clearly mine is no good.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="nav_head1" class="nav_group" style="display: block;"&gt;
  &lt;div id="nav_arrow"&gt;&lt;a href="javascript:toggleTree('pnl10','usersStatusView.html');"&gt;&lt;img src="arrow_down.gif" id="apnl10" alt="" width="8" border="0" height="10"&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;div id="nav_icon"&gt;&lt;a href="javascript:toggleTree('pnl10','usersStatusView.html');"&gt;&lt;img src="icon_users.gif" alt="" width="20" border="0" height="20"&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;div id="nav_head1_text"&gt;&lt;a href="javascript:toggleTree('pnl10','usersStatusView.html');" class="nav_font_head1"&gt;
  Users&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="nav_head2" class="nav_item" style="display: block;"&gt;&lt;div id="nav_head2_textbox"&gt;&lt;a href="usersSettingsView.html" onclick="javascript:hiLight(this);" target="tabFrame" class="nav_sub_sett"&gt;Settings&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>All thoughts are welcome!  Thanks.</p>