On Jun 8, 4:51 am, Željko Filipin <zeljko.fili...@wa-research.ch>
wrote:
> On Mon, Jun 8, 2009 at 1:48 PM, Chethan <chethan2...@gmail.com> wrote:
> > <img class="collapseImg" src="themes/leadforce1/images/expand.gif"/>
>
> browser.image(:src, /expand/).click
>
> > <div class="collapseHeaderText">View More Details ...</div>
>
> browser.div(:text, "View More Details ...").click
>
> Željko
> --http://watirpodcast.com/

Of if the text might be subject to change, you ought to be able to do

browser.div(:class, "collapseHeaderText").click

If clicking isn't working, have a very close look at what happens when
you do it manually.  Click and HOLD the mouse button down, then
release... if it seems to activate on the release, then it might be
looking for the "onMouseUp" event..

In which case you can try:

browser.div(:class, "collapseHeaderText").fire_event("onMouseUp")

--~--~---------~--~----~------------~-------~--~----~
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: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to