thankyou very much it worked for me..

On Apr 21, 5:24 am, George <george.sand...@gmail.com> wrote:
> Yeah, you're right.  I tried this on one of my favorite websites:
>
> First, open your browser tohttp://icanhascheezburger.com, then follow
> this:
>
> ======================
> require 'watir'
> ie = Watir::IE.attach(:title, /Lolcats/)
>
> # I'm now going to mouse over the third star associated with the first
> Lolcat
> ie.div(:id, "whole").div(:id, "mainbody").div(:class, "pane2").div
> (:class, "postsubtitle").div(:class, "js-kit-rating left").table
> (:class, "js-ratings-tableWrapper").div(:class, "js-ratingWrapper").div
> (:class => " js-kit-rater", :index => "3").fire_event("onmouseover")
>
> # The browser should now indicate that I want to vote this Lolcat 3
> stars
>
> BTW, can I truncate this at all?  Perhaps xpath?
>
> On Apr 20, 4:58 pm, Chuck van der Linden <sqa...@gmail.com> wrote:
>
>
>
> > might work.
>
> > given what he described I'm not betting on it  since I THINK that
> > focus only happens if you are using tab to move stuff with a defined
> > taborder (e.g. entry fields) or you actually click on something.
>
> > in this case it sounds like it's happening (if I read him right) when
> > the mouse cursor moves over the stars, which would be onmouseover. not
> > onfocus.    Thing is that without seeing the code, you don't know what
> > thing the 'onmouseover' has been defined for.  It might be for a table
> > cel, or a div, or who knows what kind of element.  and you'll need to
> > fire the event at the right element in order to get the client code to
> > kick in and do it's thing.
>
> > he's either going to have to figure that out for himself, or show us
> > the code where the stars are defined on the page, and more importantly
> > where there's some 'onmouseover=<scriptname> or somesuch defined.
>
> > On Apr 20, 4:42 pm, George <george.sand...@gmail.com> wrote:
>
> > > This may or may not work:
>
> > > browser.link(:id, "thisisalink").fire_event("onfocus")
>
> > > On Apr 20, 2:43 pm, Chuck van der Linden <sqa...@gmail.com> wrote:
>
> > > > search the group for the phrase  'onmouseover'  and you'll find
> > > > threads about firing that event, which is likely what is driving the
> > > > code..  (which you would likely discover if you review the actual code
> > > > that makes the page work, or at least the code that drives the
> > > > animation of the stars)
>
> > > > On Apr 19, 11:06 pm, spike <vinaykumarl...@gmail.com> wrote:
>
> > > > > Hi
>
> > > > > I'm working on a application where I have a link "RATE THE COURSE" now
> > > > > i don want to click on this link, instead i just want to place the
> > > > > cursor on it because when i do so i'll get some STARS which i've to
> > > > > click to rate the course. so i want to know how to jus place the
> > > > > cursor on the link without clicking it.
>
> > > > > thankingyou- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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