title: How do I select the Last Name element on Microsoft CRM form that has the name <input id = "lastname_i"...> using Python selenium driver?
body: <p>I have no clue why my CRM driver is not catching this below <code>HTML</code> element.  I have tried using absolute and relative XPath, tried using <code>webdriver.get_element_by_id('lastname_i')</code>, <code>get_element_by_css_selector('input.lastname_i')</code>, and many more scripting possibilities.  For whatever reason, the webdriver does not find this element.  </p>
  
  <p>Can anyone help me with the correct Python script?  I think it has something to do with the fact there is no <code>/&gt;</code> in the HTML element I am trying to find.</p>
  
  <pre><code>&lt;div class="ms-crm-Inline-Edit  ms-crm-Inline-HasError"&gt;&lt;input id="lastname_i" attrname="lastname" attrpriv="create, read, update" maxlength="50" title="" class="ms-crm-InlineInput" controlmode="alwaysedit" style="ime-mode: active;" aria-invalid="true" type="text"&gt;&lt;/div&gt;
  </code></pre>