Test_SNF_SOC_29_Demo_ShareViewLinkGadge
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Dashboard
clickAndWait link=Dashboard 1,1
echo --Add Rss Fetcher gadget
waitForElementPresent link=Add Gadgets
click link=Add Gadgets
waitForElementPresent xpath=//div[@class='UIDashboardContainer']/div/div/div[2]
click xpath=//div[@title='Social Rss Reader']
pause 500
dragAndDropToObject //div[@title='Social Rss Reader'] xpath=//div[@class='UIDashboardContainer']
waitForElementPresent //div[@id='UIDashboard']//div[@class='CloseButton']
click //div[@id='UIDashboard']//div[@class='CloseButton']
waitForTextPresent eXo Blog
verifyTextPresent eXo Blog
pause 500
echo -- Share link
waitForElementPresent link=eXo Cloud IDE Now Available in the Chrome Web Store
click link=eXo Cloud IDE Now Available in the Chrome Web Store
waitForElementPresent //div[@id='link_1']/a[1]
click //div[@id='link_1']/a[1]
echo -- View Share link in Activity
waitForElementPresent link=Activities
click link=Activities
pause 500
waitForElementPresent link=My Status
click link=My Status
pause 500
waitForTextPresent eXo Cloud IDE Now Available in the Chrome Web Store
verifyTextPresent eXo Cloud IDE Now Available in the Chrome Web Store
echo --Delete Activity
waitForElementPresent //div[2]/div/div[1]/div[2]
click //div[2]/div/div[1]/div[2]
assertConfirmation Are you sure to delete this activity?
waitForTextNotPresent eXo Cloud IDE Now Available in the Chrome Web Store
verifyTextNotPresent eXo Cloud IDE Now Available in the Chrome Web Store
pause 500
echo -- Delete Drag and drop Gadget
waitForElementPresent link=Dashboard
clickAndWait link=Dashboard 1,1
waitForElementPresent //div[@onclick='eXo.gadget.UIGadget.deleteGadget(this)']
click //div[@onclick='eXo.gadget.UIGadget.deleteGadget(this)']
waitForConfirmation Are you sure to delete this gadget?
waitForTextPresent Drag your gadgets here.
verifyTextPresent Drag your gadgets here.
pause 200
waitForElementPresent link=Sign out
clickAndWait link=Sign out