See attached. Once in awhile (say, one in several hundred test runs), I'll have something like this happen:
What it should have typed was AttachmentCount:0.
Another example where it is retyping "very" and this time with the wrong case:
I have also seen it happen where it stops typing in the middle of a send_keys() phrase I'm sending (see example screenshot in a comment below).
The function I'm using is below. I'm using Selenium 2.23 on Windows 7 with Firefox 13. Any ideas on why this happens? I can re-run the test and it'll be fine. I have 113 other searches in this test that typed out fine.
def do_find(self, term): """ interacts with the search form """ textbox = self.browser.find_element_by_id('query') textbox.clear() # for when we loop and search more than once tab = util.webdriver.common.keys.Keys.TAB textbox.send_keys(term, tab) # tab closes autocomplete popup findb = self.browser.find_element_by_id('findbutton') findb.click()