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.

Getting a click on "javascript:xxx(999)" to work in Sahi

davidjohnbirddavidjohnbird Members
edited December 2013 in Sahi - Open Source
If I run a web app without Sahi running at all and click on a button that has code that just says "javascript:xxx(999)" behind it what happens is that a blank browser window quickly opens and closes to display a custom file dialog that lets me open or save a file in CSV format.

If I now automate the process using Sahi and click on the button, nothing appears to happen.

Further investigation of the Start Sahi DOS window shows that the file has been created and downloaded in to the userdata\temp\download folder as a sahi_*.aspx file. From this I know that Sahi is doing something with the button click. It is just not doing what I want.

So the question is - how do I get Sahi to display the custom file dialog so that the automation process works just like it does manually?

Thanks in advance.

David John Bird.

Best Answer

  • The file dialoge is a totally different scope. Sahi can't manipulate the browsers notifications, thats why alterts, file downloads, confirms etc are omitted.
Sign In or Register to comment.