How to read hover text or tooltip text?

How to extract the hover text or tooltip text?

I tried using get attribute activity but no luck.

use case: if we hover on Twitter
user’s followers it shows the exact followers count that I want.

1 Like

Will check this and update you @Rahul_Dhumne

#nK

Thanks for your reply. :slight_smile:

I tried right-clicking on hover text and then tried to spy it but no luck.
that hover text part did not highlight as a UI element so can’t use get attribute activity.

1 Like

@Manish_Pandey

Hey @Rahul_Dhumne

Please find the workaround. This may help you.

image

PFA -
ScrapeTwitterFollowersCount.zip (113.5 KB)

Currently this is only designed to work for Narendra Modi’s profile. Please edit the selectors accordingly to make it work for any profile if this method suits you

Even if any help required on that part, please post here.

Thanks
#nK

1 Like

Hey, Thanks for your quick solution.
I would like to know that the step you followed to get text activity.
when I tried to spy that hover text it is not taking as a selector.

1 Like

Yep, you are right.

I just manipulated it from chrome dev tools.

  • Go to sources tab under dev tools.

  • Hover it and press F8.

  • You can now check the html code in dev tools and frame the selector for ui-path.

  • Use find element and then get the selector of it.

  • Then remove the find element and directly pass the selector (got from find element) to get text activity.

Thanks
#nK

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.