feat: renamed element + used variable instead of raw value

This commit is contained in:
surtur 2020-06-12 23:00:14 +02:00
parent 486ea8ae7f
commit 76b7db15cc
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -7,7 +7,7 @@ ${BROWSER} chrome
${DELAY} 0.2
${LOGIN_BUTTON} //*[@id="navbar"]/div[2]/a[2]
${SIGN_IN} //form/div[4]/button[1]
${SIGN_IN_BUTTON} //form/div[4]/button[1]
${USERNAME_FIELD} //*[@id="user_name"]
*** Keywords ***
@ -36,15 +36,15 @@ attempt login without password
Maximize Browser Window
Click Element ${LOGIN_BUTTON}
Sleep 0.2
Sleep ${DELAY}
Screenshot page
Log Location
Input Username ${USERNAME_FIELD} dat_test_username
Screenshot page
Click Element ${SIGN_IN}
Sleep 0.2
Click Element ${SIGN_IN_BUTTON}
Sleep ${DELAY}
Screenshot page
Login Should Have Failed
Log Location