Check Validation Of Create Product Form
setTimeout 45000
open index.php
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent //html/body/section/nav/div[1]/a
click //html/body/section/nav/div[1]/a
waitForText //html/body/section/nav/div[1]/ul/li[9]/a/span Products
clickAndWait //html/body/section/nav/div[1]/ul/li[9]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div[1]/div[2]/div/h1 How do Products work in Zurmo?
click //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[1]/a[2]
waitForTextPresent Create Product
clickAndWait //html/body/section/div[1]/div[2]/div[1]/div[1]/nav[1]/div[1]/ul/li/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //html/body/section/div[1]/div[2]/div[1]/h1/span/span Create Product
assertSelectedLabel //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[8]/td/div/select Product
assertSelectedLabel //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[9]/td/div/select One Time
assertSelectedLabel //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[10]/td/div/div[1]/div/select USD
assertValue //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[10]/td/div/div[2]/input 0
assertSelectedLabel //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[11]/td/div/select Open
type //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[10]/td/div/div[2]/input abc
click //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[2]/div/div/a[1]/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
waitForText //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[2]/td/div Name cannot be blank.
waitForTextPresent Quantity cannot be blank.
waitForText //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[3]/td/div Quantity cannot be blank.
waitForTextPresent Value must be float.
waitForText //html/body/section/div[1]/div[2]/div[1]/div[1]/form/div[1]/div[1]/div/table/tbody/tr[10]/td/div/div[2]/div Value must be float.