Hi Zeljko,

My OS is Windows Xp.
The code you mentioned is running fine.
But I wanted to Use Rspec.
So i modified my Old Code  and also installed new gem "safariwatir"
which made my code work.
I have added the OUTPUT also.
I am getting "PENDING" which i want to implement
Please tell me how to implement with simple example
and what are the methods i can use.(Please give me the source where
all the methods are listed like "should include","should_not
include","should have_link")
Whenever I use these methods"should include" or "should_not include",
i will get No Method Defined Error. I dont no which library file
should i "include" or "require"


#MODIFIED CODE.

    require 'test/unit/assertions'
  require 'rubygems'
   require 'watir'
   require 'spec'
  require 'watir/container'
   include Watir::Container
    include Test::Unit::Assertions
            #include
Spec::Example::Subject::ExampleGroupMethods::ExampleMethods
$email="www.gmail.com"
$username="USERNAME"
$password="password"
describe 'should Navigate to Gmail Login Screen' do
    it 'Enter username'
    $ie = Watir::IE.new
    $ie.goto($email)
    $ie.text_field(:id, 'Email').set($username)
    #$ie.text.should ('Aidy Lewis')
  end


OUTPUT:

C:\Ruby\Abhi_My Ruby>spec abhiRspec.rb --format specdoc

should Navigate to Gmail Login Screen
- Enter username (PENDING: Not Yet Implemented)

Pending:

should Navigate to Gmail Login Screen Enter username (Not Yet
Implemented)
./abhiRspec.rb:18

Finished in 0.672 seconds

1 example, 0 failures, 1 pending

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to