Test_POR_19_012_CompleteStep1InCreatePageAtTheSameLevelWithSameNodeNameButDifferentByLowerUpperCase
open /portal/public/classic/
echo --Complete step 1 in Create page at the same level with same Node name but different by lower/upper case--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//a[text()='Sign in']
echo -- Add new page with lower case --
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
click //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
waitForElementPresent pageName
type pageName Test_por_19_012
type pageDisplayName Test_por_19_012
echo -- Click Next to move step 2 --
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Click Next to move step 3, keep empty layout --
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
clickAndWait //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
echo -- Add new page with upper case --
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
click //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
waitForElementPresent pageName
type pageName TEST_POR_19_012
type pageDisplayName TEST_POR_19_012
echo -- Click Next to mve step 2 --
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
echo -- Click Next to mve step 3, keep empty  layout --
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
clickAndWait //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
clickAndWait link=Site
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
echo -- delete node with lower case --
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_por_19_012']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Test_por_19_012']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
echo -- Delete node with upper case --
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='TEST_POR_19_012']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out