[wtr-general] Re: What are the methods available for accessing links

2009-04-22 Thread spike
Thankyou sir you suggestion helped me. On Apr 21, 4:58 am, Chuck van der Linden 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 o

[wtr-general] Re: What are the methods available for accessing links

2009-04-22 Thread spike
thankyou very much it worked for me.. On Apr 21, 5:24 am, George 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(:titl

[wtr-general] Re: What are the methods available for accessing links

2009-04-21 Thread Željko Filipin
On Tue, Apr 21, 2009 at 01:58, Chuck van der Linden wrote: > show us the code A great title for a blog or something like that. :) Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To pos

[wtr-general] Re: What are the methods available for accessing links

2009-04-20 Thread Chuck van der Linden
well looking at that page, the div with class=post is the main container of a posting... so in theory, the nth index of that div gives you the nth posting on the page. OR if you know the ID of the post you could address that div using the postID, presuming the site had not scrolled and that pos

[wtr-general] Re: What are the methods available for accessing links

2009-04-20 Thread George
Yeah, you're right. I tried this on one of my favorite websites: First, open your browser to http://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 L

[wtr-general] Re: What are the methods available for accessing links

2009-04-20 Thread Chuck van der Linden
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 curs

[wtr-general] Re: What are the methods available for accessing links

2009-04-20 Thread George
This may or may not work: browser.link(:id, "thisisalink").fire_event("onfocus") On Apr 20, 2:43 pm, Chuck van der Linden 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 li

[wtr-general] Re: What are the methods available for accessing links

2009-04-20 Thread George
I believe onfocus works just as well: browser.link(:id, "thisisalink").fire_event("onfocus") On Apr 20, 2:43 pm, Chuck van der Linden 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

[wtr-general] Re: What are the methods available for accessing links

2009-04-20 Thread Chuck van der Linden
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