Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7792855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:18:28+00:00 2026-06-01T22:18:28+00:00

I have to print the hover box information content on to stdout and i

  • 0

I have to print the hover box information content on to stdout and i tried it in the below fashion it didn’t work for me .

data = $browser.div(:class => "homeSectionLabel textWidget",:text => /Pool A/ ).hover

print "Data  #{data} \n"

And the other problem that i have other widget called Pool B with same class name . How to access that hover information

<div class="widgetContainer poolContainer">
<div class="healthBadge healthUnknown" style="top: -5px; left: -5px;"></div>
<div class="homeSectionLabel textWidget">Pool‌·A</div>
<div class="perfDisplay homePoolPerf">
</div>
<div class="homePoolVolText textWidget">9‌·Volumes,‌·0‌·Snapshots</div>
<div class="spaceMeterContainer poolMeter" style="width: 265px; height: 20px;">
</div>
<table class="tableWidget homeTiers" cellspacing="0" cellpadding="0" border="0">
</table>
</div>

Anyhelp is really appreciated .

Thanks!
Aditya

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:18:29+00:00Added an answer on June 1, 2026 at 10:18 pm

    This is not much of an answer at the moment, but what I have to say won’t fit in a comment

    The ‘content’ as in the text within a div is normally accessed with the .text method

    ‘tooltip’ text can be done in a number of ways, it could be via alt attributes, it could be via javascript triggered via an ‘onmouseover’ event, or it could be CSS driven usually via the :hover psuedoclass.

    if a div is merely changing it’s display property or location so that it becomes visible to the user, then all you need to do is figure out how to locate that div, and get the .text from it

    mydata = browser.div(:how => ‘what’).text

    If the content of the div (or some other container) is changing as a result of the mouseover/hover, then you need to simulate the action, wait a brief bit to allow client side code to run, and THEN get the .text from the container that was changed.


    Without seeing a page that has the code working on it, it is hard to tell which is the case, although given that I see nothing like ‘onmouseover’ in the code you supplied, my first bet would be on this being CSS driven.

    The code you have above is returning the result of the div object executing the .hover method, and that is going to be nil as far as I know since that method causes something to happen, but does NOT return a value.

    Is the ‘Pool A’ the text you are trying to capture, or is it what you mouse_over to cause the other text to become visible to the user? If it is what you mouseover, then have you searched the HTML to see if you can find the text that appears in some other div?

    If you just need to get the text from every div of a given class, then try something like this

    browser.divs(:class => "homeSectionLabel textWidget").each do |div|
      puts div.text
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a <div> that opens up on a jquery hover event (display goes
I have print $str; abcd*%1234$sdfsd..#d The string would always have only one continuous stretch
I have a situation where I have to print out a NUL character if
if for example i have : #define PRINT(x) fprintf(stderr, x); and in code i
I'm trying to have Joda print 0 seconds if the input time is zero,
Is there a way to have rails print out a number with commas in
I have a generic Print method that iterates over a list and simply prints
I have a finger print scanner and it's SDK (brand : Suprema BioMini usb
I have a string: # print thestring abcd\t$500\n I want to extract the dollar
Say I have the code: print(>>> ) command = gets What I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.