Commit fb73fdfa authored by L4072's avatar L4072

Upload New File

parent 17e81e14
Pipeline #60517 passed with stages
in 22 seconds
*** Settings ***
Documentation Resource file for PT4.robot
Library SeleniumLibrary
*** Variables ***
${SEARCH} hakusana
${INVALID EMAIL} asdf@asdf.asdf
${INVALID PASSWORD} ASDFasdf1234
*** Keywords ***
Open Search
Click Element xpath://*[@id="top-bar"]/div/div/div[3]/ul[2]/li[1]
Input Text xpath://*[@id="search-field"] ${search}
Submit Search
Click Element xpath://*[@id="searchsubmit"]
Correct Page Opens
Element Text Should Be xpath:/html/body/div[2]/div/div[2]/div/h1 Hakutulos: ${search}
Unused Username
Input Text xpath://*[@id="login-username"] ${INVALID EMAIL}
Click Button xpath://*[@id="next-button"]
Sleep 100ms
Unused Password
Input Text xpath://*[@id="login-password"] ${INVALID PASSWORD}
Click Button xpath://*[@id="login-button"]
Sleep 200ms
Unused Credentials Message
Element Text Should Be xpath://*[@id="login-message"] Tunnus tai salasana on vrin.
Go To Top Button
Click Button xpath:/html/body/div[4]/div/div//*[@id="top-button"]
Invalid Username
Input Text xpath://*[@id="login-username"] ${INVALID EMAIL}
Click Button xpath://*[@id="next-button"]
Sleep 100ms
Invalid Password
Input Text xpath://*[@id="login-password"] ${INVALID PASSWORD}
Click Button xpath://*[@id="login-button"]
Sleep 200ms
Go To Youtube Channel
Click Element xpath:/html/body/div[3]/div//*[@class='row']//*[@id=youtube-link]
Title Should Be Lupapiste - Youtube
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment