Test_ANS_35_005
open /ksdemo/public/classic/
windowMaximize
echo Step 1: Login and Open Answers application
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo Step 2: Open Submit question form
waitForElementPresent //div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a
clickAndWait //div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a
waitForElementPresent link=Submit question
click link=Submit question
echo Check combined formatting tags
waitForElementPresent QuestionTitle
type QuestionTitle Question Test_ANS_35_005
selectFrame //*[@id="Question___Frame"]
waitForElementPresent //html/body/table/tbody/tr[2]/td/iframe
selectFrame //html/body/table/tbody/tr[2]/td/iframe
waitForElementPresent //html/body
type //html/body Check Color tag effect   [color=red]Hello![/color]
selectFrame relative=top
type EmailAddress root@localhost.com
waitForElementPresent link=Save
clickAt link=Save 1,1
echo confirm OK
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
clickAt //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a 1,1
waitForElementPresent link=Question Test_ANS_35_005
click link=Question Test_ANS_35_005
waitForAttribute //p/font@color red
verifyAttribute //p/font@color red
echo ========detele data
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForElementPresent //div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a
clickAndWait //div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a
waitForElementPresent link=Question Test_ANS_35_005
mouseOver link=Question Test_ANS_35_005
contextMenu link=Question Test_ANS_35_005
waitForElementPresent //div[@id='UIPopupQuestion0']/div/div/div/div/div[4]/a
click //div[@id='UIPopupQuestion0']/div/div/div/div/div[4]/a
waitForElementPresent //form[@id='UIDeleteQuestion']/div[3]/table/tbody/tr/td/div[1]/div/div/div/a
click //form[@id='UIDeleteQuestion']/div[3]/table/tbody/tr/td/div[1]/div/div/div/a
waitForTextNotPresent Test_ANS_35_005
verifyTextNotPresent Test_ANS_35_005
waitForElementPresent link=Sign out
clickAndWait link=Sign out