Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. *** Settings ***
  2. Library    Selenium2Library
  3. Suite Setup    Go To homepage
  4. Suite Teardown    Close All Browsers
  5.  
  6. *** Variables ***
  7. ${HOMEPAGE}    http://www.google.com
  8. ${BROWSER}    chrome
  9.  
  10.  
  11. *** Test Cases ***
  12. Google devops and find udomsak
  13.     Google and check results    udomsak    udomsak
  14.  
  15. *** Keywords ***
  16. Google and check results
  17.     [Arguments]    ${searchkey}  ${result}
  18.     Input Text    id=gbqfq  ${searchkey}
  19.     Click Button  id=gbqfb
  20.     Wait Until Page Contains    ${results}
  21.  
  22. Go To homepage
  23.     Open Browser    ${HOMEPAGE}  ${BROWSER}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement