I'm having trouble figuring out how to configure my robot framework script to perform a basic Google search.
Here is my code:
*** Settings ***
Documentation This test is very simple
Library Selenium2Library
*** Variables ***
${url} https://www.google.com
${browser} chrome
${text} xpath=//*[@id="lst-ib"]
*** Test Cases ***
User can access website
[Documentation] User should be able to open the
Google homepage
open browser ${URL} ${BROWSER}
wait until page contains ${url}
close browser
User enters search query
[Documentation] User searches for 'Test
Definition'
open browser ${URL} ${browser}
wait until page contains ${URL}
input text ${text} Test Definition
click button btnK
wait until page contains Test
Could someone please point out where I've gone wrong?