gmail login script

Discussion in 'Programming' started by ssimon171078, May 13, 2011.

  1. #1
    How do I authenticate into Gmail using Perl?
    i need to write this script ,but problem is to authenticate to gmail.
     
    ssimon171078, May 13, 2011 IP
  2. om39a

    om39a Peon

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First U download and configure Watir. Then try running thid script.
    ----------
    
       require 'watir'   # the watir controller
    
       # set a variable
       test_site = 'http://www.gmail.com'
      
       # open the IE browser
       ie = Watir::IE.new
    
       
       ie.goto(test_site)
       
        $ie.text_field(:name, "Email").set("YourEmail@gmail.com")
        $ie.text_field(:name, "Passwd").set("password")
        $ie.button(:value, "Sign in").click
    
    
    Code (markup):
    ----------
    Tis may help you!!
     
    om39a, May 16, 2011 IP