Angrez Singh wrote:
> Thanks Paul for the information. Just going through it found that
>
> "If the user clicks an object that can receive the input focus but 
> does not already have the focus, the onfocus 
> <http://msdn.microsoft.com/en-us/library/ms536934%28VS.85%29.aspx> 
> event occurs for that object before the *onclick* event. "
>
> In my case when I used click "onfocus" event was not getting raised. 
> When i explicitly fired "onfocus" event on link and then used 
> link.click() i was able to get the desired results.
>
> My question now is, does watir fires "onfocus" event before clicking 
> an element? If not, then do we need to change it?

Sounds reasonable.

-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training


--~--~---------~--~----~------------~-------~--~----~
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