Re: [Wtr-general] hi, how to get TOOLTIP

2007-04-10 Thread Željko Filipin

On 4/7/07, Maloy kanti debnath [EMAIL PROTECTED] wrote:


how can I make sure that the tooltip, no matter whether it is present in
the title of the enclosing 'span' or not, gets displayed on the screen, when
the mouse is hovered over the link.



Hi Maloy,

The answer is very simple. If span tag has some text in title attribute,
that text will be displayed on the screen when mouse is over it. So, all you
have to do is to check if span has title. You can do like this.

irb(main):004:0 ie.span(:class, listCellQT).title
= Note from Yolanda Dave.This is a public note.This is an additional note
from Christina Bergman

If you want to test if browser displays title of a tag, it is outside of
watir's scope. Watir tests functionality of web applications, not
functionality of browsers. And displaying title of a tag is browser
functionality.

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] hi, how to get TOOLTIP

2007-04-07 Thread Maloy kanti debnath
Hello Zeljko Filipin,

I am not able to find out the image.  So, I will post the '.html' of a link, 
which gives a tooltip when the mouse is hovered over it.  The 'link' is 
enclosed by a 'span' and the tooltip is present as the 'title' of the span.  
But how can I make sure that the tooltip, no matter whether it is present in 
the title of the enclosing 'span' or not, gets displayed on the screen, when 
the mouse is hovered over the link.

a.   The 'html' of the table that contains the link is:

TABLE class=listQT cellSpacing=0 cellPadding=4 width=100% border=0THEAD

TBODY

TR class=listBodyQT

TD class=listCellQTINPUT type=checkbox value=28 name=selectedNotes /TD

TD class=listCellQTSPAN class=listCellQT title=Note from Yolanda Dave.This 
is a public note.This is an additional note from Christina BergmanA 
href=/iam/quicktools/notes/Edit.do?objectId=28amp;Component.classAlias=Inventionamp;Component.objectId=1528amp;compress=falseamp;Component.attributeName=nullbergc1
 / 4/5/2007 /A/SPAN/TD/TR/TBODY/TABLE

b.  The actual link is 'bergc1 / 4/5/2007'.

c.  The tooltip that will be displayed when the mouse is hovered over this link 
is:  

The html of the table that contains the link is: 'Note from Yolanda Dave.This 
is a public note.This is an additional note from Christina Bergman' (you may 
see this tooltip as the 'title' of the 'span' that encloses the link)

I sincerely hope that this information would help you.

Thanks,
Maloy.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] hi, how to get TOOLTIP

2007-03-29 Thread Maloy kanti debnath
hi,

  

 I can't give you the page or the link its confidential so sorry for that 
.. we don't have alt or title for that image that's the problem   can 
you understand my prob and help me out.. to get the tooltip

bye,
Maloy
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] hi, how to get TOOLTIP

2007-03-29 Thread Maloy kanti debnath
Hello ZeljkoFilipin,

In our application, there is an image, which displays a tooltip when the mouse 
cursor is placed over it.  Normally this tooltip would be present in either the 
'alt' or the 'title' property of the image.  But this image does not have the 
tooltip in either of the two properties. The only place where the tooltip 
appears in on the application screen.  In this situation, is there any way to 
capture it through Watir?

If you still want the html of our application or the control, we would give it.


Thanks for your time,
Maloy
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] hi, how to get TOOLTIP

2007-03-29 Thread Željko Filipin

Can you post just html for that image (and maybe a few tags before and after
it)?

You probably need something like this:

ie.image(:index, 1).fire_event(onMouseOver)
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] hi, how to get TOOLTIP

2007-03-28 Thread Željko Filipin

Please post html snippet or link to your application.
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general