title: Can't type with selenium into contenteditable div displayed in IE8
body: <p>I encountered following problem while automating Sharepoint site using selenium 1 in IE8 browser. I can not type into  tag (Sharepoint people picker field) 
  Below is the html code :</p>
  
  <pre><code> &lt;td sizcache="10" sizset="0"&gt;    
         &lt;div tabIndex="0"
                  title="People Picker"
                  class="ms-inputuserfield"
                  id="ctl00_ctl00_pePeopleEditor_upLevelDiv"
                  style="overflow-x: hidden; overflow-y: auto; background-color:window; width: 100%; height: 18px; color: windowtext;"
                  contentEditable="true"
                  onkeydown="return onKeyDownRw(this, 'ctl00_ctl00_pePeopleEditor',3, true, event);"
                  onkeyup="return onKeyUpRw('ctl00_ctl00_pePeopleEditor');"
                  onclick="onClickRw(true, true);"
                  onblur="updateControlValue('ctl00_ctl00_pePeopleEditor')"
                  ondragstart="canEvt(event);"
                  oncopy="docopy();"
                  onpaste="dopaste();"
                  onfocusin="this._fFocus=1;saveOldEntities('ctl00_ctl00_pePeopleEditor_upLevelDiv')"
                  onfocusout="this._fFocus=0;"
                  name="upLevelDiv"
                  AutoPostBack="0"
                  onChange="updateControlValue('ctl00_ctl00_pePeopleEditor')"
         /&gt;
  
         &lt;textarea
                 name="ctl$ctl00$pePeopleEditor$downlevelTextBox"
                 title="People Picker"
                 class="ms-input" id="ctl00_ctl00_pePeopleEditor_downlevelTextBox"
                 style="position: absolute; width: 100%; display: none; height:20px;"
                 onkeydown="return onKeyDownRw(this, 'ctl00_ctl00_pePeopleEditor', 3,true, event);"
                 onkeyup="onKeyUpRw('ctl00_ctl00_pePeopleEditor');"
                 rows="1"
                 cols="20"
                 AutoPostBack="0"
         /&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I tried to put the text into that field using selenium functions as follows but none of them work out:</p>
  
  <pre><code>self.selenium.click(div_locator)
  self.selenium.type_keys(div_locator, "string")
  self.selenium.key_press(div_locator, "string")
  self.selenium.key_press_native(65)
  ------------------------------------------------------------------------------------
  
  self.selenium.fire_event(div_locator,"focus")
  self.selenium.type_keys(div_locator, "string")
  self.selenium.key_press(div_locator, "string")
  self.selenium.key_press_native(65)
  ----------------------------------------------------------------------------------
  
  self.selenium.click_at(div_locator,"") 
  self.selenium.type_keys(div_locator, "string")
  self.selenium.key_press(div_locator, "string")
  self.selenium.key_press_native(65)
  ------------------------------------------------------------------------------------
  
  self.selenium.click(textbox_locator)
  self.selenium.type(textbox_locator, "string")
  self.selenium.type_keys(textbox_locator, "string")
  self.selenium.key_press(textbox_locator, "string")
  self.selenium.key_press_native(65)
  ------------------------------------------------------------------------------------
  
  self.selenium.fire_event(textbox_locator,"focus")
  self.selenium.type(textbox_locator, "string")
  self.selenium.type_keys(textbox_locator, "string")
  self.selenium.key_press(textbox_locator, "string")
  self.selenium.key_press_native(65
  ----------------------------------------------------------------------------------
  
  self.selenium.set_cursor_position(textbox,-1)
  self.selenium.key_press(textbox_locator,  "\\13")
  self.selenium.key_press_native(10)
  self.selenium.key_press_native(65)
  </code></pre>
  
  <p>Note also that there is no problem with this field on FF and IE6</p>
  
  <p>Does anyone has an idea how to handle this Sharepoint people picker field ?</p>
  
  <p>Alek</p>