[Wtr-general] problem in clicking button
Prema Arya
prema.arya at gmail.com
Mon Apr 2 08:31:02 EDT 2007
Hi Vikash,
Thanks for raising the issue. We are working on FireWatir to remove all the
gaps it has with Watir so that there is no need to change scripts.
For now you can click the button using text and type properties, this works
on Watir also.
ff.button(:text, "Sign In")
ff.button(:type, "submit")
Regards,
Prema
On 4/2/07, VIKASH KUMAR <vikashkumar051 at yahoo.co.in> wrote:
>
> I have a button in my web page, the relevant snippet of html is as
> follows:
>
> <div> <br />
> <button type="submit">Sign In</button>
> </div>
>
> This button can be click using watir by ie.button(:value,'Sign In').click,
> but in case of FireWatir, the same syntax gives error.
>
> The Error is as follows :
>
> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/./MozillaBaseElement.rb:739:in
> `assert_exists': Unable to locate object, using value and Sign In
> (FireWatir::Exception::UnknownObjectException)
> from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/./MozillaBaseElement.rb:897:in
> `click'
>
> Please, help me in clicking this button using FireWatir
> Thanks in advance
> Vikash
>
> ------------------------------
> Here's a new way to find what you're looking for - Yahoo! Answers<http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
--
Prema Arya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070402/b047af15/attachment.html
More information about the Wtr-general
mailing list