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.

Sahi Pro, Telerik WebButtons and javascript?

CathySoQACathySoQA Members
edited January 2013 in Sahi Pro
I am having an issue where Sahi Pro will click the Telerik webbutton but the javascript on click event does not seem to be firing for a Telerik button. This works fine if I do not have the Sahi controller open. I cannot provide a URL but can provide other details if needed.
Basically, when we have certain forms in our app open, we have the ability to Print or Preview them. The on click fires javascript which in turn triggers the IE Open Save Cancel dialog in IE9. If the controller is open, nothing happens with the on click, if the controller is closed, I get the pdf as expected. Any suggestions as to why this wouldn't be working?

IE9
Windows 7 Pro 64 bit

Sahi Pro 4.3.2
Version:
4.3.2
Build:
2012-09-26 14:44:11

Comments

  • Hmmm, I just verified that even from the Sahi home page, the link for the PDF document will not open if the controller is open.
    Start Sahi Pro
    Launch http://sahi.co.in/sahi-pro/
    Open the Sahi Controller
    Click the link Sahi Pro Documentation (PDF)
    Notice the PDF will not load.
    Close the controller, the clicking the link will open the IE Open, Save, Cancel dialog...
  • Hi,

    If you launch a browser through Sahi dashboard, it will be going through Sahi Proxy. Controller being opened or close will not matter. If you will look into the download_contenttypes.txt file in your userdata config, you can see that pdf is the content which Sahi will download on its own. Sahi detects that it is a downloadable file, based on its MimeType and Content-Disposition headers. It then downloads and saves the file into sahi/userdata/temp/download/ after renaming it to something like: sahi_0384a26207e6104f5f08868032bd170de76d__sahipro.pdf. Once the file is downloaded Sahi exposes the original name of the file (“sahipro.pdf”) through the API: _lastDownloadedFileName()

    You can look up into this dodumentation for further to know about handling file downloads: http://sahi.co.in/w/handle-file-downloads

    Thanks,
    Kshitij
  • Thanks for the tip...
Sign In or Register to comment.