|
@@ -3,22 +3,27 @@ Library SeleniumLibrary
|
|
Library XML
|
|
Library XML
|
|
|
|
|
|
*** Variables ***
|
|
*** Variables ***
|
|
-${LOGIN_BUTTON_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div[1]/div[1]/a[1]
|
|
|
|
|
|
+${LOGIN_BUTTON_LOCATOR_ACCUEIL}= xpath=//*[@id="root"]/div/div/div/div[1]/div[1]/a[1]
|
|
${CREATE_ACCOUNT_BUTTON_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div[1]/div[1]/a[2]
|
|
${CREATE_ACCOUNT_BUTTON_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div[1]/div[1]/a[2]
|
|
-
|
|
|
|
|
|
+${LOGOUT_BUTTON_LOCATOR}= xpath=//*[@id="navbarSupportedContent"]/ul/li[2]/button
|
|
*** Keywords ***
|
|
*** Keywords ***
|
|
|
|
|
|
Valider l'affichage de la page "Accueil" - non connecté
|
|
Valider l'affichage de la page "Accueil" - non connecté
|
|
${page_url} = Get Location
|
|
${page_url} = Get Location
|
|
Should Be Equal As Strings ${page_url} https://practice.expandtesting.com/notes/app/
|
|
Should Be Equal As Strings ${page_url} https://practice.expandtesting.com/notes/app/
|
|
- Wait Until Element Is Visible ${LOGIN_BUTTON_LOCATOR}
|
|
|
|
|
|
+ Wait Until Element Is Visible ${LOGIN_BUTTON_LOCATOR_ACCUEIL}
|
|
#Element Should Exist ${LOGIN_BUTTON_LOCATOR}
|
|
#Element Should Exist ${LOGIN_BUTTON_LOCATOR}
|
|
#Element Should Exist ${CREATE_ACCOUNT_BUTTON_LOCATOR}
|
|
#Element Should Exist ${CREATE_ACCOUNT_BUTTON_LOCATOR}
|
|
|
|
|
|
|
|
+Valider l'affichage de la page "Accueil" - connecté
|
|
|
|
+ Wait Until Element Is Visible ${LOGOUT_BUTTON_LOCATOR}
|
|
|
|
+ ${page_url} = Get Location
|
|
|
|
+ Should Be Equal As Strings ${page_url} https://practice.expandtesting.com/notes/app
|
|
|
|
+
|
|
Cliquer sur "Login"
|
|
Cliquer sur "Login"
|
|
|
|
|
|
- Click Element ${LOGIN_BUTTON_LOCATOR}
|
|
|
|
|
|
+ Click Element ${LOGIN_BUTTON_LOCATOR_ACCUEIL}
|
|
|
|
|
|
Cliquer sur "Create an account"
|
|
Cliquer sur "Create an account"
|
|
Click Element ${CREATE_ACCOUNT_BUTTON_LOCATOR}
|
|
Click Element ${CREATE_ACCOUNT_BUTTON_LOCATOR}
|
|
-
|
|
|
|
|
|
+
|