Well, your code isn't finding the sign in text fields in the first
place. Are you sure that the name value for those fields are "Email"
and "Passwd"? Keep in mind the name field is specifically declared, it
isn't just whatever text is nearby.

Also, it looks like the first frame is called signup, so the
text_field elements might be in there. You could try:

frames hide their html from the parent frame/window, so if the login
fields are in a frame, looking for the fields in the main window wont


On Aug 26, 4:55 am, Maumita <maumita.majum...@gmail.com> wrote:
> Hi,
> This is a test site "https://sandbox.google.com/checkout/view/buy?
> o=shoppingcart&shoppingcart=322449560105091&pli=1&tzfp=wg-14ArD"
> In this I am not able to enter login credentails in the Sign In
> section.
> --
> require 'watir'
> require 'test/unit'
> require 'win32ole'
> $ie = Watir::IE.new
> test_site='https://sandbox.google.com/checkout/view/buy?
> o=shoppingcart&shoppingcart=322449560105091&pli=1&tzfp=wg-14ArD'
> $ie.goto(test_site)
> $ie.show_frames
> $ie.text_field(:name, "Email").set("a")
> #$ie.text_field(:name, "Passwd").set('b')
> --
> $ie.show_frames - it shows
> --
> there are 2 frames
> frame  index: 1 name: signup
> frame  index: 2 Access Denied, 
> seehttp://wiki.openqa.org/display/WTR/FAQ#access-denied
> d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_exists': Unable to locate element, using :name,
> "Email" (Watir::Exc
> eption::UnknownObjectException)
>         from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:284:in `enabled?'
>         from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:56:in `assert_enabled'
>         from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:323:in `set'
>         from D:/ruby/samples/RubySrc-1.8.6-p111/sample/
> DriverCentral_Scripts/test/t.rb:11
> ---
> Please help how can I enter login credentials in Sign In section.
> Thanks
> Maumita
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to