*** Settings *** Library SeleniumLibrary Library XML *** Variables *** ${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] ${LOGOUT_BUTTON_LOCATOR}= xpath=//*[@id="navbarSupportedContent"]/ul/li[2]/button ${PAGEACCUEIL_CONNECTED_BUTTON_LOGOUT_LOCATOR} = xpath=//*[@id="navbarSupportedContent"]/ul/li[2]/button *** Keywords *** Valider l'affichage de la page "Accueil" - non connecté ${page_url} = Get Location Should Be Equal As Strings ${page_url} https://practice.expandtesting.com/notes/app/ Wait Until Element Is Visible ${LOGIN_BUTTON_LOCATOR_ACCUEIL} #Element Should Exist ${LOGIN_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" Click Element ${LOGIN_BUTTON_LOCATOR_ACCUEIL} Cliquer sur "Create an account" Click Element ${CREATE_ACCOUNT_BUTTON_LOCATOR} Cliquer sur "Lougout" - user connecté Click Element ${PAGEACCUEIL_CONNECTED_BUTTON_LOGOUT_LOCATOR} Valider l'affichage de la page "Accueil" - user connecté ${page_url} = Get Location Should Be Equal As Strings ${page_url} https://practice.expandtesting.com/notes/app/ Wait Until Element Is Visible ${PAGEACCUEIL_CONNECTED_BUTTON_LOGOUT_LOCATOR}