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.

Issues while executing sahi batch run in cmd line.

cmblcmbl Members
edited November -1 in Sahi - Open Source
Hi Team,

I have a scenario, pls let me know how to simulate Sahi scripts from batch run for the same.

1) When i launch my website URL. It invokes an jnlp file and then it starts my app in another window and closes the main window.
2) Also there are some popups which appear, which needs to be clicked for the app window to open.
3) When i execute the scripts using Sahi controller, i go to this website and then i play the scripts.
4) But when i run the scripts using batch run using a cmd line, then the batch run is failing since i am not able to set the URL.
5) How can i overcome this problem for batch run.
6) I tried to execute the sahi script from the launch of the url. But the record doesn't work. It works only when the app login screen appears.

Also when i use a browser.navigateTo(""), I face the same problem. How do i overcome this problem.

Regards,
Chandra

Comments

  • narayannarayan Administrators
    Hi Chandra,

    Do you mean that browser.navigateTo("http://yoururl.com/";) does not work for you?

    -narayan
  • cmblcmbl Members
    Hi Narayan,

    What i meant was if i give browser.navigateTo("http://yoururl.com/";), it launches the browser with the url. Here my url loads some security files and invokes another window(mainly a popup) and my main app loads in this popup window. While the app is loading in the popup window, the browser will ask permissions to load the app and some security files. Once i give permissions ( i.e. click on "run" or "yes" based on the permission the browser will request), the app will load the login screen. I am able to record only from this login screen. The sahi controller does not allow to record the popup windows which the browser invokes for getting the permission.

    When i use browser.navigateTo("http://yoururl.com/";), and then start to provide my username and pwd, the test fails. The same thing happens when i run the recorded test from command line.

    How to solve this problem? Is it possible to bypass the permissions the browser requests or record the permissions requested by the browser?
  • narayannarayan Administrators
    Hi Chandra,

    Can you send screenshots of the security alert and the general flow to support@sahi.co.in ?
    We will have a look and get back to you.

    Regards,
    Narayan
Sign In or Register to comment.