title: Converting the following xpath //div[@id='sb-search']/form/span[2] to css selector
body: <p>I am trying to convert the following xpath <code>//div[@id='sb-search']/form/span[2]</code> to a css selector in order to use it in Selenium. </p>
  
  <p>I have tried the following but no luck in Internet Explorer 11:</p>
  
  <pre><code>search_icon = driver.find_element_by_css_selector('div#sb-search &gt; form &gt; span:nth-child(2)')
  </code></pre>