How do extract the tooltip message

1,130 views
Skip to first unread message

Harini Ravi

unread,
Apr 25, 2018, 3:52:43 AM4/25/18
to robotframe...@googlegroups.com
Hi ,

I need to validate the tooltip text that will be displayed for each text filed, which will be displayed on mouserover event.

I tried as below, but the xpath is not located correctly.

#${x}=     Selenium2Library.Get Element Attribute   xpath=//tr[id="editData:j_id225"]
 #${x}=   Get Tooltip Text   id="editData:j_id225" // this keyword doesn't work at all.
    ${x}=   Get Text   xpath=//tr[id="editData:j_id225"]

Any suggestions pls..?


Thanks&Regards,
Harini B

Hélio Guilherme

unread,
Apr 25, 2018, 3:07:46 PM4/25/18
to robotframework-users
Maybe you should have pasted here an example of the HTML for that element.

You may try to use Get Element Attribute.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.



--
My Favorite Open Source Projects
awsome-lists gretl meld robotframework wxPython

Raghul Jayagopal

unread,
Apr 25, 2018, 7:30:46 PM4/25/18
to heliox...@gmail.com, robotframework-users
Hi Harini,

Can u try “Mouse Over” and followed by "Get Element Attribute

Regards,
RJ.

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

Harini Ravi

unread,
Apr 26, 2018, 5:33:02 AM4/26/18
to raghul.j...@gmail.com, heliox...@gmail.com, robotframework-users
Hello  RJ & Helio

Thanks for the response.

I tried Mouse Over followed by Get Element Attribute. But didn't work.

     Mouse Over  xpath=.//*[@id='editData:j_id224']
    ${x}=       Selenium2Library.Get Element Attribute   xpath=//tr[id="editData:j_id226"]@iceOutTxt




here is the html for the tooltip which am trying.

td class="icePnlGrdCol2" id="editData:j_id223-0-1"><div class="icePnlGrp" id="editData:j_id224" onmouseover="; new ToolTipPanelPopup(this, 'editData:categoryRadiustip', event, 'mouseout','500', 'false', 'editData', '','/owui/xmlhttp/blank','hover',false);"><img alt="" class="iceGphImg" id="editData:j_id225" src="/owui/inc/images/question-mark.png" style="border:none;"></div></td>


<div class="icePnlTlTip" id="editData:categoryRadiustip" name="editData:categoryRadiustip" style="visibility: hidden; position: absolute; top: 6px; left: 572px; display: none;"><table cellpadding="0" cellspacing="0"><tbody><tr id="editData:categoryRadiustip-tr"><td class="icePnlTlTipBody" colspan="2"><span class="iceOutTxt" id="editData:j_id226">Enter Radius(in meters) as Individual direct value or condition. Example : 5000 or &gt;5000. Use comma as delimiter to give Combination of direct values, condition and ranges.Example : 5000,&gt;6000,&lt;7000,9000-10000. For range configuration, Example: 900100-900900, 1st Number(900100) must be greater than 2nd Number(900900), values in between 900100-900900 will be considered, end values 900100 and 900900 will be excluded.</span></td></tr></tbody></table>
<script id="editData:categoryRadiustipscript" language="JavaScript" type="text/javascript"></script></div>

Thanks,
Harini B.



Thanks&Regards,
Harini B

On Thu, Apr 26, 2018 at 2:56 AM, Raghul Jayagopal <raghul.j...@gmail.com> wrote:
Hi Harini,

Can u try “Mouse Over” and followed by "Get Element Attribute

Regards,
RJ.
On 26 Apr 2018, at 5:07 am, Hélio Guilherme <heliox...@gmail.com> wrote:

Maybe you should have pasted here an example of the HTML for that element.

You may try to use Get Element Attribute.
On Wed, Apr 25, 2018 at 8:52 AM, Harini Ravi <harin...@gmail.com> wrote:
Hi ,

I need to validate the tooltip text that will be displayed for each text filed, which will be displayed on mouserover event.

I tried as below, but the xpath is not located correctly.

#${x}=     Selenium2Library.Get Element Attribute   xpath=//tr[id="editData:j_id225"]
 #${x}=   Get Tooltip Text   id="editData:j_id225" // this keyword doesn't work at all.
    ${x}=   Get Text   xpath=//tr[id="editData:j_id225"]

Any suggestions pls..?


Thanks&Regards,
Harini B

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.



--
My Favorite Open Source Projects
awsome-lists gretl meld robotframework wxPython

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages