I am not able to understand how I can set my robotframework's script to do a simple search on google.
This is my script:
*** Settings ***
Documentation This is a basic test
Library Selenium2Library
*** Variables ***
${url} https://www.google.com
${browser} chrome
${text} xpath=//*[@id="lst-ib"]
*** Test Cases ***
User can open page
[Documentation] As a user I can open the
google page
open browser ${URL} ${BROWSER}
wait until page contains ${url}
close browser
User fill in the Search text box
[Documentation] The user search 'Test
Definition'
open browser ${URL} ${browser}
wait until page contains ${URL}
input text ${text} Test Definition
click button btnK
wait until page contains Testenter code here
Can you help me where I made the mistake?
Thanks
Aucun commentaire:
Enregistrer un commentaire