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 verify colour of text.

dashboarddashboard Members
edited April 2014 in Sahi - Open Source
Hi All

Website : http://quack.idera.com/partners

Verify that "Welcome to the" is in Black and "ONE Idera Partner Portal" is in Red.

Any help would be much appreciated.

Regards
Uday

Answers

  • if html code is like
    <span style="color:black">Welcome to the </span><span style="color:red">ONE Idera Partner Portal</span>.

    Sahi code:
    _assertEqual("black", _span("Welcome to the ").style.color, "Some log message....");
    _assertEqual("red", _span("ONE Idera Partner Portal").style.color, "Some log message....");
Sign In or Register to comment.