TestWebHelloWorld

Setting Value
Suite Setup Prepare To Start Selenium Server ${browser}
Suite Teardown Stop Selenium Server
Library OperatingSystem
Library String
Test Case Action Arguments
connectToGoogle ${browser_id} Open Browser http://www.google.com.tw ${browser}
Maximize Browser Window
Wait Until Page Contains Element //input[@id='lst-ib'] 20s
Sleep 5s
[Teardown] Run Keyword If Test Failed Capture Page Screenshot
Keyword Action Arguments
Prepare To Start Selenium Server [Arguments] ${browser}
Import Library SeleniumLibrary run_on_failure=Nothing
${suite_directory} Get Suite Directory
Run Keyword If '${browser}'=='firefox' Start Selenium Server -firefoxProfileTemplate
... ${suite_directory}${/}SeleniumProfile
Run Keyword Unless '${browser}'=='firefox' Start Selenium Server
Sleep 2s
Set OS Environment ${OS_NAME} Get Environment Variable OS_NAME ${EMPTY}
${os} Run Keyword If '${OS_NAME}' == '' Run And Return Rc
... ls
Run Keyword If '${OS_NAME}' == '' Run Keyword If '${os}'=='0'
... Set Environment Variable OS_NAME linux
Run Keyword If '${OS_NAME}' == '' Run Keyword If '${os}'=='1'
... Set Environment Variable OS_NAME windows
Get Suite Directory ${suite_file_name} Fetch From Right ${SUITE SOURCE} ${/}
${suite_directory} Replace String ${SUITE SOURCE} ${suite_file_name}
... ${EMPTY}
[Return] ${suite_directory}