Create Account
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php/products/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Advanced
assertTextPresent Columns
clickAndWait //ul[@id='MashableInboxCreateDropdown']/li/ul/li/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Product
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='ProductEditAndDetailsView']/div/div/form/div[3]/div/div/a[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Quantity cannot be blank.
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=Product_productTemplate_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=ProductTemplatesSearchForm_anyMixedAttributes A Bend in the River
keyUp id=ProductTemplatesSearchForm_anyMixedAttributes \10
verifyTextPresent A Bend in the River
verifyValue ProductTemplatesSearchForm_anyMixedAttributes A Bend in the River
click link=A Bend in the River
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 3000
assertSelectedLabel Product_type_value Product
assertSelectedLabel Product_priceFrequency_value Monthly
assertSelectedLabel Product_stage_value Open
setSpeed 0
type Product_name Product ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Product_quantity 20000
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='ProductEditAndDetailsView']/div/div/form/div[3]/div/div/a[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Product ${randomSuffix}