|
@@ -0,0 +1,39 @@
|
|
|
+*** Settings ***
|
|
|
+Library SeleniumLibrary
|
|
|
+Library XML
|
|
|
+
|
|
|
+*** Variables ***
|
|
|
+${CREATEACCOUNT_HEADER_LOCATOR}= css=h1
|
|
|
+${EMAILADDRESS_TEXTBOX_LOCATOR}= id=email
|
|
|
+${PASSWORD_TEXTBOX_LOCATOR}= id=password
|
|
|
+${NAME_TEXTBOX_LOCATOR}= id=name
|
|
|
+${CONFIRMPASSWORD_TEXTBOX_LOCATOR}= id=confirmPassword
|
|
|
+${REGISTER_BUTTON_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div/form/div[2]/button
|
|
|
+${LOGGIN_HERE_LINK_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div/p/a/span
|
|
|
+${CONFIRMATION_MESSAGE_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div/div[2]/b
|
|
|
+${LOGGIN_LINK_ACCOUNTCREATEDLOCATOR}= xpath=//*[@id="root"]/div/div/div/div/div[2]/div/a
|
|
|
+
|
|
|
+*** Keywords ***
|
|
|
+
|
|
|
+Verifier l'affichage de la page "Create Account"
|
|
|
+ ${CreateAccount_Header_Text}= Get Text ${CREATEACCOUNT_HEADER_LOCATOR}
|
|
|
+ Should Be Equal As Strings ${CreateAccount_Header_Text} Register ignore_case=true
|
|
|
+Remplir le formulaire
|
|
|
+ [Arguments] @{donnees_formulaire}
|
|
|
+ Input Text ${EMAILADDRESS_TEXTBOX_LOCATOR} ${donnees_formulaire}[0]
|
|
|
+ Input Text ${PASSWORD_TEXTBOX_LOCATOR} ${donnees_formulaire}[1]
|
|
|
+ Input Text ${NAME_TEXTBOX_LOCATOR} ${donnees_formulaire}[2]
|
|
|
+ Input Text ${CONFIRMPASSWORD_TEXTBOX_LOCATOR} ${donnees_formulaire}[3]
|
|
|
+
|
|
|
+Soumettre le formulaire
|
|
|
+ Click Button ${REGISTER_BUTTON_LOCATOR}
|
|
|
+
|
|
|
+Verifier la creation du compte
|
|
|
+ ${confirmation_message_text}= Get Text ${CONFIRMATION_MESSAGE_LOCATOR}
|
|
|
+ Should Be Equal As Strings ${confirmation_message_text} User account created successfully ignore_case=true
|
|
|
+
|
|
|
+Acceder a la page loggin - compte créé
|
|
|
+ Click Element ${LOGGIN_LINK_ACCOUNTCREATEDLOCATOR}
|
|
|
+
|
|
|
+Acceder a la page loggin - formulaire non rempli
|
|
|
+ Click Element ${LOGGIN_HERE_LINK_LOCATOR}
|