SHARE
TWEET

Untitled

a guest Apr 20th, 2019 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *** Settings ***
  2. Library  SeleniumLibrary
  3.  
  4. *** Variables ***
  5. ${PAGE URL}          https://www.google.pl/
  6. ${BROWSER}      Chrome
  7. ${LOGIN}    someLogin
  8. ${PASSWORD}      somePassword
  9. ${OFFICE URL}   https://login.microsoftonline.com
  10.  
  11. *** Test Cases ***
  12. Valid Search
  13.     Open google
  14.     Input query
  15.     Assert has results
  16.     [Teardown]    Close Browser
  17.  
  18. Login siigda
  19.     Open office login portal
  20.     Input login
  21.     Input password
  22.     Stay signed in modal
  23.     Assert logged in
  24.     [Teardown]  Close Browser
  25.  
  26. *** Keywords ***
  27. Open google
  28.     Open Browser    ${PAGE URL}    ${BROWSER}
  29. Input query
  30.     Input text  name=q  obiad
  31.     Press Key   name=q  \\13
  32. Assert has results
  33.     page should contain element  class=g
  34.  
  35. Open office login portal
  36.     Open Browser    ${OFFICE URL}   ${BROWSER}
  37. Input login
  38.     Input text  name=loginfmt   ${LOGIN}
  39.     Press Key   name=loginfmt   \\13
  40. Input password
  41.     Input text  name=passwd     ${PASSWORD}
  42.     Sleep   2s
  43.     Press Key   name=passwd     \\13
  44. Stay signed in modal
  45.     Click Button    id=idBtn_Back
  46. Assert logged in
  47.     page should contain element     id=meInitialsButton
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top