Test User Type Ahead
setTimeout 45000
open index.php/accounts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertValue Account_owner_id 1
assertValue Account_owner_name Super User
focus Account_owner_name
type Account_owner_name sa
typeKeys Account_owner_name m
waitForElementPresent //div[@id='owner-box']/ul/li/a[. = "Sam Smith (sam)"]
mouseOver //div[@id='owner-box']/ul/li/a[. = "Sam Smith (sam)"]
click //div[@id='owner-box']/ul/li/a[. = "Sam Smith (sam)"]
assertValue Account_owner_name Sam Smith
assertNotValue Account_owner_id