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 use _style

escapeescape Members
edited November -1 in Sahi - Open Source
Hi

I want to use the API function _style
When I hover over a link the cursor changes from pointer to hand
I have tried the following: _assertEqual("hand",_style(_spandiv("Peterpan"),"cursor"));
the assertion fails.

I have a css file, which is mentioned in the html code, there is the class .link_active . How can I evalute the cursor property of this class in Sahi?

regards

escape

Comments

  • I have got it at MSDN

    document.styleSheets[0].rules[168].style.cursor

    ..... :D it' s a javascript feature ........

    regards

    escape
  • narayannarayan Administrators
    _style(_spandiv("Peterpan"),"cursor") should have given you "pointer" I think.
  • escapeescape Members
    edited February 2008
    you're right


    but in real life it changes to "hand" , because it is a mouse over event.
    if you hover over the element the cursor changes because of the specification in the css.

    Sahi don't get this :(
  • narayannarayan Administrators
    Setting cursor: pointer in the css shows the hand when you hover over that element.
    Have a look at http://www.w3schools.com/css/pr_class_cursor.asp too.
Sign In or Register to comment.