Test_SNF_SOC_29_Demo_ShareViewLinkGadge
open /portal/public/default/
windowMaximize
echo -- Share and View link Fetcher gadget
clickAndWait link=exact:Acme: Social Intranet
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
pause 1000
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]
waitForElementPresent xpath=//div[@title='Social Rss Reader']
pause 1000
dragAndDropToObject //div[@title='Social Rss Reader'] xpath=//div[@class='UIDashboardContainer']
waitForElementPresent //div[@id='UIDashboard']//div[@class='CloseButton']
click //div[@id='UIDashboard']//div[@class='CloseButton']
echo -- Share link
waitForElementPresent link=eXo Announces Spanish Version of Website
click link=eXo Announces Spanish Version of Website
waitForElementPresent //div[@id='link_1']/a[1]
click //div[@id='link_1']/a[1]
echo -- View Share link in Activity
waitForElementPresent link=My Activities
click link=My Activities
pause 500
waitForElementPresent link=My Status
click link=My Status
pause 500
waitForTextPresent eXo Announces Spanish Version of Website
verifyTextPresent eXo Announces Spanish Version of Website
echo --Delete Activity
waitForElementPresent //form/div[2]/div/div[1]/div[2]
click //form/div[2]/div/div[1]/div[2]
assertConfirmation Are you sure to delete this activity?
waitForTextNotPresent eXo Announces Spanish Version of Website
verifyTextNotPresent eXo Announces Spanish Version of Website
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?
verifyTextPresent Drag your gadgets here.
waitForElementPresent link=Logout
clickAndWait link=Logout
close