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.

Open New Browser from Sahi code

Keshava Reddy KKeshava Reddy K Members
edited November -1 in Sahi - Open Source
Hi,

How to open new Browser from sahi code ?

widow.open() is working from controller, but it is not working from sahi code

Comments

  • Hi Keshava Reddy K,

    You can use:
    _call(window.open(yahooURL, "MyWindowName"));
    // You can access the popup window via _popup
    _popup("MyWindowName")._click(...);
    

    Let me know if you face any problem.

    Regards
    Sumitra
  • Please help me for below.....
    my scripts are executing in IE, form that script i want to open other browser(Firefox)
  • Hi Keshava Reddy,

    You can use something like this:
    var $path = "C:\\Program Files\\Mozilla Firefox\\firefox.exe";
    //var $name = "firefox";
    var $browseroption = " -profile D:\\sahi_pro_V4.0\\userdata\\browser\\ff\\profiles\\sahi1 -no-remote";
    _execute($path + $browseroption);
    

    Regards
    Sumitra
Sign In or Register to comment.