Kiran,

You didn't mention what objects it works/fails with. Is it only
working for a particular type of object, and failing on another type
of object?

Is it possible that the reason Watir's click() method does not work
for your situation is that the java script for the objects you are
trying
to access contain different trigger events (e.g. one requires
onChange,
another requires onFocus), or multiple fire events are needed
to be performed in the proper sequence?

For example a text field may require:
   # 1. Perform a click method on the object
             browser.text_field(:how, what).click
   # 2. Perform  an onFocus fire event on the object
             browser.text_field(:how, what).fire_event("onFocus")
   # 3. Perform  a Set method on the object
             browser.text_field(:how, what).set("My Text")
   # 4. Perform  an onChange fire event on the object
            browser.text_field(:how, what).fire_event("onChange")

Could that be the root of the issue you've encountered?

It could help if you would post a pared down sample of the HTML
code for a couple of the objects you are having issues with.

Joe

On Jul 1, 2:33 am, kiran yajamanyam <[email protected]> wrote:
> Hi Friends,
>
> I am facing a problem while clicking on few objects (both in IE and Firefox)
> for IE  I am using mouse_click() method which  I have taken from grup and is
> perfectly working fine and I have attached that piece of code in this mail.
> Did some one tried Mouse_click method for firewatir?
>
> I have struck up with this as I am unable to provide support for firefox for
> my project where as in IE I have quite a big number of test cases which I
> have automated(around 1000)
>
> Swift reply will be appreciated .
>
> PS: click() or click! or click_no_wait() or .fire_event("onClick") none of
> these methods are working for few elements in my project both in IE as well
> as Firefox. Objects on which click is not working are having javascript for
> events.
>
> Regards,
> Kiran Y
>
>  Mouse_click.rb
> 2KViewDownload

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to