Test_REG_AIO168_KS_FOR_004_ksdemo_CheckIfLabelsInMoveTopicFormAreTranslatedInFrench
open /ksdemo/public/classic/
windowMaximize
echo -- Login
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Change language to French
waitForElementPresent link=Change Language
click link=Change Language
waitForElementPresent link=French
click link=French
clickAndWait link=Apply
echo -- Go to Forum
open /ksdemo/public/classic/forum
echo -- Create new category
waitForElementPresent //div[@id='AddCategory']/div/div/div/div
click //div[@id='AddCategory']/div/div/div/div
waitForElementPresent //div[@id='AddCategory']/div/div/div/div/a/span
click //div[@id='AddCategory']/div/div/div/div/a/span
waitForElementPresent CategoryTitle
type CategoryTitle REG_AIO168_move
waitForElementPresent link=Enregistrer
click link=Enregistrer
echo -- Create new forum
waitForElementPresent //div[@id='AddForum']/div/div/div/div/a/span
click //div[@id='AddForum']/div/div/div/div/a/span
waitForElementPresent ForumTitle
type ForumTitle REG_FOR_004
waitForElementPresent link=Enregistrer
click link=Enregistrer
echo -- Create new topic
waitForElementPresent link=Démarrer une discussion
click link=Démarrer une discussion
waitForElementPresent ThreadTitle
type ThreadTitle REG_AIO168_004
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
waitForElementPresent //html/body/table/tbody/tr[2]/td/iframe
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body REG_AIO168_KS_FOR_004_Content
selectFrame relative=top
waitForElementPresent link=Soumettre
click link=Soumettre
echo -- Select topic to move
waitForElementPresent //div[@id='UITopicContent']/div/table/tbody/tr/td[9]/input
click //div[@id='UITopicContent']/div/table/tbody/tr/td[9]/input
waitForElementPresent //form[@id='UITopicContainer']/div[4]/div/div[1]/div/div/div/div[2]/div[1]/div/div/div/div/div
click //form[@id='UITopicContainer']/div[4]/div/div[1]/div/div/div/div[2]/div[1]/div/div/div/div/div
waitForElementPresent link=Déplacer
click link=Déplacer
echo -- Select topic to move
waitForTextPresent Cochez les forum à sélectionner
verifyTextPresent Cochez les forum à sélectionner
waitForElementPresent //form[@id='UIMoveTopicForm']/div[4]/table/tbody/tr/td/div/div/div/div/a
click //form[@id='UIMoveTopicForm']/div[4]/table/tbody/tr/td/div/div/div/div/a
echo -- Delete forum
waitForElementPresent link=REG_AIO168_move
click link=REG_AIO168_move
waitForElementPresent //form[@id='UICategory']/div[4]/div/table/tbody/tr/td[7]/input
click //form[@id='UICategory']/div[4]/div/table/tbody/tr/td[7]/input
waitForElementPresent //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
click //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
waitForElementPresent link=Supprimer
click link=Supprimer
assertConfirmation Etes-vous certain de vouloir supprimer cette catégorie?
echo -- Change language into English
waitForElementPresent link=Changer la langue
click link=Changer la langue
waitForElementPresent link=Anglais
click link=Anglais
clickAndWait link=Appliquer
echo -- Log out
clickAndWait link=Sign out