I am trying to work with mouseover on a particular Item in my application by using the following command
{

ie.text\_field(:xpath, "//a[contains(text(),'Deal')]").fire\_event('onmouseover')

}

On doing mouseover on a item, two subitems are displayed.

Is there any way to capture the sub items which are part of the Item by doing mouseover with which we can report that our test is pass or fail.

Please suggest.

Additional Information :

If we take example,On the StackOver flow page, If i do mouseover on my name, i get a window where i see activity, privileges, Logout and other stuff. This is really what i was looking for. Is there a way to capture the items displayed on the window on doing mouseover.

I also tried to capture the subitems with the following :
{

text=ie.text\_field(:xpath, "//a[contains(text(),'Deal')]").fire\_event('onmouseover')

puts(text.inspect)

}

On doing this "text" value is displayed as 'nil'.