Thanks for all your replies.

Chuck,

I think we are using the jquery thickbox for the popup. What are the
scripts to actually detect the presence of the popup when i click on a
link. I have tried the following code and it gives error

ie.link(:text, 'signup').click
hwnd = ie.enabled_popup(10)

I stuck at this line and gives error"hwnd = ie.enabled_popup(10)"

c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:
59:in `wait
_until': Timed out after 9.5 seconds.
(Watir::Exception::TimeOutException)
        from c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/
watir/waiter.r
b:80:in `wait_until'
        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir
\contrib\enable
d_popup.rb:10:in `enabled_popup'
        from C:/Users/ProElite.ProElite-PC/Desktop/test.rb:17



On Jun 4, 3:46 am, Chuck van der Linden <[email protected]> wrote:
> Are you talking about something that is dynamically rendered in the UI
> when an element experiences a mouseover?
>
> You'd need to be able to determine what properties of the dynamic
> element you could look for, like a visibility style.
>
> Once you know that,  fire the 'onMouseOver' event at the elementA that
> should be reacting to the mouseover event, allow a tiny bit of time
> for elementB it to render (might sleep for a half second or something)
> and check for the resulting style change on the elementB that would be
> causing it to be displayed.
>
> not sure if that's foolproof or not, potentially whatever reacts to
> the style change could be failing to work and you'd not detect it (I
> think)  but it's about the closest I've found.
>
> On Jun 3, 1:38 am, Ivan Chung <[email protected]> wrote:
>
> > I just need a value returned, lets say the popup works then return
> > "true" and vice versa.
>
> > On Jun 3, 4:36 pm, Ivan Chung <[email protected]> wrote:
>
> > > Hi all,
>
> > > I have scenario which i needed to detect the presence of a javascript
> > > popup when mouse over the navigations. How could i do this?
>
> > > Any helps are appreciated.- 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 [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to