Test_SNF_KS_52_ksdemo_BanIP
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
echo -Add IP Ban-
open /ksdemo/private/classic/forum
waitForElementPresent //div[@id='Administrations']/div/div[1]/div/div/div/div/a
click //div[@id='Administrations']/div/div[1]/div/div/div/div/a
waitForElementPresent //div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[7]/a/span
click //div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[7]/a/span
waitForElementPresent newIpBan1
type newIpBan1 192
type newIpBan2 168
type newIpBan3 1
type newIpBan4 64
waitForElementPresent link=[Add]
click link=[Add]
waitForTextPresent 192.168.1.64
verifyTextPresent 192.168.1.64
type newIpBan1 192
type newIpBan2 168
type newIpBan3 1
type newIpBan4 65
waitForElementPresent link=[Add]
click link=[Add]
waitForTextPresent 192.168.1.65
verifyTextPresent 192.168.1.65
echo -View posts form-
waitForElementPresent link=Posts
click link=Posts
waitForElementPresent //form[@id='UIPageListPostByIP']//div[@class='ActionButton LightBlueStyle']
click //form[@id='UIPageListPostByIP']//div[@class='ActionButton LightBlueStyle']
echo -Delete IP-
waitForElementPresent link=X
click link=X
assertConfirmation This IP will no longer be banned. Do you confirm ?
waitForTextNotPresent 192.168.1.64
verifyTextNotPresent 192.168.1.64
waitForElementPresent link=X
click link=X
assertConfirmation This IP will no longer be banned. Do you confirm ?
waitForTextNotPresent 192.168.1.65
verifyTextNotPresent 192.168.1.65
waitForElementPresent link=Close
click link=Close
clickAndWait link=Sign out
waitForTextPresent Sign in