Selenium commands to selense script

Hi All,

I’m using selenium-client gem for testing. I need to convert the
commands which i have used into selense script. Please find the below
example for clear understanding.

Eg:-
@browser = Selenium::Client::Driver.new(:host=>“localhost”,
:port=>“4444”,:browser=>“*firefox”, :timeout_in_second=> 15000, :url =>
http://www.google.com”)
@browser.start_new_browser_session
@browser.openhttp://www.google.com
@browser.click “link=Gmail”, :wait_for => :page
@browser.type “Email”, “user_name”
@browser.type “Passwd”, “password”
@browser.click “signIn”

The equivalent selense script will looks like following code.

<?xml version="1.0" encoding="UTF-8"?> myscript
myscript
open http://www.google.com
click link=Gmail
type Email user_name
type Passwd password
click signIn

Thanks,
Priya