18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

How to "getText" on mouseover()?

AkshadaAkshada Members
edited November -1 in Sahi - Open Source
Hi All,

In my application there is an element (image) to which on mouseover it displays the text that keeps changing.
I need to automate this in JAVA.

How do i get this text that comes in a div on which i cannot even click!!

By far, there has been tremendous support from the forum members for all my queries!!
Thanks to all !!

Regards
Akshada

Comments

  • narayannarayan Administrators
    Hi Akshada,

    Can you try with

    System.out.println(browser.image("id").fetch("alt"));

    or

    System.out.println(browser.image("id").fetch("title"));

    ?

    A request: If you find our software useful and our support good, could you please leave us a testimonial at http://sahi.co.in/forums/viewforum.php?id=5


    Thanks and regards,
    Narayan
  • AkshadaAkshada Members
    Hi Narayan,

    I am definitely going to do that (Testimonial)!!
    SAHI is WONDERFUL!!

    However for my problem,I recorded the "div" position using "selenium" and then by using selenium locator (bySeleniumlocator) i am verifying the Content!!
    My problem is solved now!!

    Thank you so much!!

    Regards,
    Akshada
This discussion has been closed.