orde,
I tried your suggestion with no luck
Basim

On Tue, Jul 13, 2010 at 4:27 PM, orde <ohil...@gmail.com> wrote:

> Did you try just browser.image(:class, "gwt-Image").click or
> browser.image(:class, "gwt-Image").fire_event("onload")?
>
> orde
>
> On Jul 13, 12:59 pm, Basim Baassiri <ba...@baassiri.ca> wrote:
> > pre-conditions:
> > ruby -v
> > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
> >
> > gem list watir
> >
> > *** LOCAL GEMS ***
> >
> > watir (1.6.5, 1.5.6)
> >
> > Browser: Firefox 3.6.6
> > HTML Page:http://v.overlay.tv/demo/html5
> >
> > I've tried the following with no success (didn't respond to clicking of
> the
> > play button). I used firebug to identify the tag and the attribute class
> >
> > irb(main):032:0> browser.div(:class, 'play-button play-button-up').click
> > => 0
> > irb(main):034:0> browser.div(:xpath , "//d...@class='play-button
> > play-button-up']").exists?
> > => true
> > irb(main):035:0> browser.div(:xpath , "//d...@class='play-button
> > play-button-up']").click
> > => 0
> > irb(main):036:0> browser.div(:xpath , "//d...@class='play-button
> > play-button-up']").image(:class, "gwt-Image").exists?
> > => true
> > irb(main):037:0> browser.div(:xpath , "//d...@class='play-button
> > play-button-up']").image(:class, "gwt-Image").click
> > => 0
> > irb(main):038:0> browser.div(:class, "play-button
> > play-button-up").image(:class, "gwt-Image").exists?
> > => true
> > irb(main):039:0> browser.div(:class, "play-button
> > play-button-up").image(:class, "gwt-Image").click
> > => 0
> > irb(main):040:0> browser.div(:class, "play-button
> > play-button-up").image(:class, "gwt-Image").fire_event "onclick"
> > => 0
> > irb(main):041:0> browser.div(:class, "play-button
> > play-button-up").image(:class, "gwt-Image").fire_event "onclick"
> > => 0
> > irb(main):042:0> browser.div(:class, "play-button
> > play-button-up").fire_event "onclick"
> > => 0
> > irb(main):043:0> browser.div(:class, "play-button
> > play-button-up").fire_event "mousedown"
> > => 0
> > irb(main):044:0> browser.div(:class, "play-button
> > play-button-up").fire_event "mouseup"
> > => 0
> > irb(main):045:0> browser.div(:class, "play-button
> > play-button-up").image(:class, "gwt-Image").fire_event "mousedown"
> > => 0
> > irb(main):046:0> browser.div(:class, "play-button
> > play-button-up").image(:class, "gwt-Image").fire_event "mouseup"
> > => 0
> >
> > Any Ideas?
>
> --
> 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: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
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: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to