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.

security testing

Sahi_ASahi_A Members
edited October 2013 in Sahi - Open Source
Hi All,

I want to test that a particular link on my page leads to a https page. How do I write a script to test this?

Thanks in advance for the help
Regards,
Sahi_A

Answers

  • Hi Sahi_A,

    When clicked on the link, it opens a new browser window? can u focus on it get the window URL.
    _set($httpsurl, windows.location.href).

    Or

    Get the atrtibute of that link- _getAttribute(_link(""),"href") and navigate to that URL using _navigateTO and verify the page.

    Hope this helps.

    Regards,
    Bhavitha
Sign In or Register to comment.