New Test
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/leads/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Lead
type Contact_firstName Test
type Contact_lastName Lead ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText //div[@id='LeadEditAndDetailsView']/div/div[2]/table/tbody/tr[1]/td[1] Test Lead ${randomSuffix}
open index.php/emailMessages/default/matchingList
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click link=Select Contact / Lead
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='list-view']/table/tbody/tr/td/div/div/div/div[2]/div/form/table/tbody/tr/td/div/a/span[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent ContactsSearchForm_anyMixedAttributes
type id=ContactsSearchForm_anyMixedAttributes Test Lead ${randomSuffix}
keyUp ContactsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-viewmodal']/table/tbody/tr/td/a Test Lead ${randomSuffix}
click //div[@id='list-viewmodal']/table/tbody/tr/td/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue //div[@id='list-view']/table/tbody/tr/td/div/div/div/div[2]/div/form/table/tbody/tr/td/div/input Test Lead ${randomSuffix}
click //div[@id='list-view']/table/tbody/tr/td/div/div/div/div[2]/div/form/div/div/a[2]/span[3]
waitForTextPresent Selected successfully
open index.php/leads/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent LeadsSearchForm_anyMixedAttributes
type id=LeadsSearchForm_anyMixedAttributes Test Lead ${randomSuffix}
keyUp LeadsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/table/tbody/tr/td[2]/a Test Lead ${randomSuffix}
clickAndWait link=Test Lead ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Test Lead ${randomSuffix}
verifyTextPresent A test unmatched archived