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.

_mouseOver errors on IE8(XP Pro) and Chrome (Linux)

jameztccjameztcc Members
edited March 2010 in Sahi - Open Source
Hi,

I tried to use "_mouseOver(_image("m1.jpg"));" (hover) and got error "[Exception] [object Error]". n.

URL is at http://www.tokods.com/ on the big image on the left.


I also got similar kind of failure using Chrome (Linux) "[Exception] Error: The parameter passed to _mouseOver was not found on the browser"

sahi_20100302.zip

thanks,
James Tan

Comments

  • narayannarayan Administrators
    Hi James,

    Mouseover on m1.jpg changes the image to c1.jpg.
    It looks like you already did a mouseover on the element which changed its image to c1.jpg. It takes around 5 seconds to automatically mouse out of an element. So if you did a _mouseOver again on m1.jpg, Sahi won't find it.

    If instead you use
    _mouseOver(_image(3)), it will work consistently.

    I would still suggest you use the jpg instead of index.

    Regards,
    Narayan
  • Thanks a lot Narayan,

    I missed a step to find out from the HTML source what is the transition. Will take your advice to use jpg than index.

    I am using "_wait(100000, _assert(_isVisible(_image($imageM))));" to handle the mouseOver effect of 5s after digging around your forum for ideas, instead of normal _wait(s).


    thanks a lot,
    James Tan
Sign In or Register to comment.