Add Product Portlet And Check Sorting
setTimeout 45000
open index.php/products/demo/loadProductsSampler
waitForPageToLoad
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Update
verifyTextPresent Advanced
type AccountsSearchForm_anyMixedAttributes My Account For Product Test
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a My Account For Product Test
verifyTextPresent My Account For Product Test
verifyValue AccountsSearchForm_anyMixedAttributes My Account For Product Test
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 3000
waitForText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[1]/td My Account For Product Test
click //div[@id='AccountDetailsAndRelationsView']/div[1]/nav/nav/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //a[@id='AddPortletLink'] Add Portlet
click //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[1]/div[1]/div/ul/li/ul/li/a
assertConfirmation This portlet will be removed, ok?
click id=AddPortletLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='DetailsPortletSelectionView']/ul/li[4]/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
waitForText //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[1]/div[1]/h3 Products
click id=ProductsConfigurationForm_filteredByStage_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr[1]/td[1]/a Product with lost stage 6
click id=ProductsConfigurationForm_filteredByStage_1
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr[1]/td[1]/a Product with open stage 0
click id=ProductsConfigurationForm_filteredByStage_2
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr/td[1]/a Product with lost stage 6
click id=ProductsConfigurationForm_filteredByStage_3
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr/td[1]/a Product with won stage 7
click id=ProductsConfigurationForm_filteredByStage_1
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr[1]/td[1]/a Product with open stage 0
click //ul[@id='yw0']/li[4]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr[1]/td[1]/a Product with open stage 5
waitForText //div[@id='product-portlet-grid-view']/table/tbody/tr[1]/td[1]/a Product with open stage 5
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Criteria Selected