Hello all, 

I'm writing some tests to test gmail and I'm having a slight problem clicking 
on the menu items to the right in a gmail window. Below is the script I am 
using. The problem is that I want to click on the text that says "Starred" 
right beneath Inbox but no matter if I use span.click or 
span.fireEvent("onClick") the click does not trigger an event. 

require 'rubygems'
require 'watir'
require 'test/unit'
include Watir

class TestCase < Test::Unit::TestCase
        def test_1
                $IE0 = IE.new
                $IE0.goto("www.gmail.com")
                $IE0.text_field(:id, 'Email').set('enter_username_here')
                $IE0.text_field(:id, 'Passwd').set('enter_password_here')
                $IE0.button(:name, 'null').click
    
                #Click on "Starred"
                $IE0.frame(:name, "main").frame(:name, "v1").span(:id, 
"ds_starred").click
        end
end

Any help would be appreciated. Please fill in the username and password when 
running otherwise it wont work. Thanks.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6882&messageID=19812#19812
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to