Created
March 20, 2015 02:14
-
-
Save up1/a95984c333dcc2d7aec9 to your computer and use it in GitHub Desktop.
Robot framework :: Template with Google
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library Selenium2Library | |
*** Variables *** | |
${GOOGLE URL} http://www.google.com | |
${KEYWORD INPUT} lst-ib | |
${SEARCH BUTTON} btnG | |
*** Testcases *** | |
ทดสอบค้นหา Google | |
[Template] ค้นหาและตรวจสอบผลการค้นหา | |
#---------------------------------------------------------------------------------------------# | |
# Keyword | Expected result # | |
#---------------------------------------------------------------------------------------------# | |
สยามชำนาญกิจ สยามชำนาญกิจ | |
สถาบันไอเอ็มซี สถาบันไอเอ็มซี | |
*** Keywords *** | |
ค้นหาและตรวจสอบผลการค้นหา | |
[Arguments] ${KEYWORD} ${EXPECTED RESULT} | |
Open Browser ${GOOGLE URL} | |
Input Text ${KEYWORD INPUT} ${KEYWORD} | |
Click Button ${SEARCH BUTTON} | |
Wait Until Page Contains ${EXPECTED RESULT} | |
Close Browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment