Watir script, log into gmail

Discussion in 'Ruby' started by Avraham Tuvy, Sep 25, 2009.

  1. Avraham Tuvy

    Avraham Tuvy Guest

    This is my first attempt with ruby/watir, the script below populates the
    login and password but does not click the signIn button, please help.


    require "watir"
    require "test/unit"
    require "win32ole"


    class TC_Login < Test::Unit::TestCase

    $ie = Watir::IE.new

    def setup
    $ie.goto("http://gmail.com")

    end

    def test_login
    $ie.text_field:)id,"Email").set("milosh") #fake
    $ie.text_field:)id,"Passwd").set("23gq") #fake

    ie.button:)name, "signIn").click


    end
    end
    --
    Posted via http://www.ruby-forum.com/.
     
    Avraham Tuvy, Sep 25, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik_the_boss
    Replies:
    0
    Views:
    2,698
    Henrik_the_boss
    Nov 5, 2003
  2. Amratash
    Replies:
    0
    Views:
    553
    Amratash
    Apr 13, 2004
  3. =?Utf-8?B?VG9tIFdpbmdlcnQ=?=

    My.Log.Writeexception not writing to Application Event Log.

    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=, Jan 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,402
    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=
    Jan 20, 2006
  4. michael
    Replies:
    7
    Views:
    168
    michael
    Aug 9, 2006
  5. Anukul Singhal
    Replies:
    1
    Views:
    182
    Charley Baker
    May 15, 2008
Loading...

Share This Page