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.

Verifying the copyright Info

SamsirsameerSamsirsameer Members
edited November -1 in Sahi - Open Source
Hi,

Caould you please provide code for the following requirement.

Requiremwent: Verifying the copyright info in the page footer

When I did assertion, it returned the following code
_assertExists(_spandiv("Copyright \u00a9 2001 - 2009, Abc Corporation. All rights reserved."));
_assertContainsText("Copyright \u00a9 2001 - 2009, Abc Corporation. All rights reserved.", _spandiv("Copyright \u00a9 2001 - 2009, Abc Corporation. All rights reserved."));

But I want the code something like below

If the copyright info is displayed in the footer log the message "COPYRIGHT INFO IS AVAILABLE
Else
log the message "COPYRIGHT INFO IS NOT AVAILABLE"

if the copy right info it is displayed as
"Copyright \u00a9 2001 - 2009, Abc Corporation. All rights reserved.", then log the message "COPYRIGHT INFO IS CORRECT"
Else
log the message "COPYRIGHT INFO IS INCORRECT"


Thanks,
Samsirsameer
Sign In or Register to comment.