18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
How to access elements in New Browser
Hi.
I am trying to access elements in a new window.
In my testcase scenario after pressing a button a new window opens.
M tryin to access elements of this new window, but not able to do.
m using this in my action
String abc= "Change Filter";
browser.execute("_sahi._popup(\""+data+"\")._click(_button(\""+abc+"\"))");
here " data " is the name of new window.
please help me out
I am trying to access elements in a new window.
In my testcase scenario after pressing a button a new window opens.
M tryin to access elements of this new window, but not able to do.
m using this in my action
String abc= "Change Filter";
browser.execute("_sahi._popup(\""+data+"\")._click(_button(\""+abc+"\"))");
here " data " is the name of new window.
please help me out
This discussion has been closed.
Comments
We can click the button on different popup window using sample code
Browser PopUp = browser.popup("PopUpWindow name");
PopUp.submit("button name").click();
Regards
Lohith