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.

save html page

alamoonalamoon Members
edited November -1 in Sahi - Open Source
it's possible to save a html or php page using sahi?

Comments

  • can anyone help please:
    how to use tjis code to save current page?

    _keyPress(element, "s", “CTRL”);
  • any luck. it is possible to save results page as html ?
  • Hi vid




    you could try

    var $html= "<html><head><title></title><meta content=""><style></style></head><body>" + document.body.innerHTML + "</body></html>"

    _writeFile($html , filePath[, overwrite]);

    Regards

    Wormi
Sign In or Register to comment.