On Sat, Nov 20, 2010 at 4:23 AM, Venkat s Patchava
<venkatasiva_patchava / syntelinc.com> wrote:
> Plz anyone help me , how to write code for google login page .

What is your goal?

This may not work as is anymore (I haven't run it for close to 4
years).  It used the FireWatir library to drive Firefox; I've also
used Mechanize.  (And, there are other options too.)

require 'firewatir'
include FireWatir

test_site = 'http://gmail.com'

browser = Firefox.new
username = ""
password = ""

puts "Going to #{test_site}."
browser.goto(test_site)

puts "Entering username into form."
browser.text_field(:name, "Email").set(username)
password = Password.get("Password: ")
puts "Entering password into form."
browser.text_field(:name, "Passwd").set(password)

puts "Clicking button to submit form."
browser.button(:name, "null").click