How to read text which is visible only by mouse hover in sikuli

Asked by saranya

Hi Raiman,

I need to validate a text, and that text is visible only by hovering the mouse over image.

Could you please let me know how it could be achieved using sikuli

Thanks,
Saranya

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
saranya
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

# define the region, that contains the text
textRegion = .... # absolute or relative
#hover over the region
textRegion.hover()
# here a short wait might be needed
# read the contained text
hoverText = textRegion.text()

Revision history for this message
saranya (saranyachuppala) said :
#2

Thanks Raiman, for quick responsee... Its working