#Hello World Test Case
#Dummy Application
#
#This test case should be useful as a proof of concept of the Arges system

initBrowser("${browser} http://www.google.com ${selenium_server} ${selenium_port}")
open(http://www.google.com/webhp?hl=en)  #open the url
 
type(q,hello world) #type "hello world" in the type field 
 clickPV(btnG) #click "submit"
wait_for_page_to_load(5000)
commandLine(python -V,Python 2.)  #check Python version
${TITLE}=get_title()  #get the title
assertEqual(hello world - Google Search,${TITLE})  #check if the title is correct
assertTextPresent("//a[contains(@href,'/intl/en/about.html')]",About Google)
#assertTextPresent("//a[contains(@href,'/intl/en/about.html')]",About Gugle)
#assertTextNotPresent("//a[contains(@href,'/intl/en/about.html')]",About Gugle) | WARNING
#assertTextNotPresent("//a[contains(@href,'/intl/en/about.html')]",About Google)
clickAndWaitPV("//a[contains(@href,'/intl/en/about.html')]")
waitForElementPresent("//a[contains(@href,'privacy.html')]")
#stop,,,,fatal #stop the browser 
