PageAccueil.resource 796 B

123456789101112131415161718192021222324
  1. *** Settings ***
  2. Library SeleniumLibrary
  3. Library XML
  4. *** Variables ***
  5. ${LOGIN_BUTTON_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div[1]/div[1]/a[1]
  6. ${CREATE_ACCOUNT_BUTTON_LOCATOR}= xpath=//*[@id="root"]/div/div/div/div[1]/div[1]/a[2]
  7. *** Keywords ***
  8. Valider l'affichage de la page "Accueil" - non connecté
  9. ${page_url} = Get Location
  10. Should Be Equal As Strings ${page_url} https://practice.expandtesting.com/notes/app/
  11. Wait Until Element Is Visible ${LOGIN_BUTTON_LOCATOR}
  12. #Element Should Exist ${LOGIN_BUTTON_LOCATOR}
  13. #Element Should Exist ${CREATE_ACCOUNT_BUTTON_LOCATOR}
  14. Cliquer sur "Login"
  15. Click Element ${LOGIN_BUTTON_LOCATOR}
  16. Cliquer sur "Create an account"
  17. Click Element ${CREATE_ACCOUNT_BUTTON_LOCATOR}