Test_SNF_KS_50_ksdemo_AutoPrune
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /ksdemo/private/classic/forum
echo -Setting Auto Prune-
waitForElementPresent //div[@id='Administrations']/div/div[1]/div/div/div/div
click //div[@id='Administrations']/div/div[1]/div/div/div/div
waitForElementPresent //div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[5]/a/span
click //div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[5]/a/span
waitForElementPresent //td[3]/div/input
click //td[3]/div/input
waitForElementPresent inActiveDay
type inActiveDay 1
type jobDay 1
waitForElementPresent link=Dry Run
click link=Dry Run
waitForElementPresent link=Save
click link=Save
waitForElementPresent //table[@id='UIGrid']/tbody/tr[2]/td[5]/div/div[2]/div
click //table[@id='UIGrid']/tbody/tr[2]/td[5]/div/div[2]/div
pause 2000
click link=Run
echo --Reset setting prune
waitForElementPresent //td[3]/div/input
click //td[3]/div/input
waitForElementPresent //table[@id='UIGrid']/tbody/tr[2]/td[5]/div/div[1]/div
click //table[@id='UIGrid']/tbody/tr[2]/td[5]/div/div[1]/div
pause 2000
type inActiveDay 0
type jobDay 0
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Close
click link=Close
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForTextPresent Sign in