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.

How to handle Popups in Sahi - when does Prefix get populated?

danielallamdanielallam Members
edited February 2013 in Sahi Pro
Hi - I am trying to understand how to record/script in Sahi when there is a popup.

When a popup appears, I have to launch a new Sahi controller for this popup - ctrl-alt-double click on popup - in order for the ctrl-mouseover to recognise objects in it (if I try and just use original Sahi controller, it only recognizes objects in the main window).

Unfortunately, launching the new Sahi controller means the events in the popup don't continue to get recorded to the original script.

When I then try and manually edit the script to enter the actions in the popup, I'm not sure what prefix I need to use in order for Sahi to realise it is looking for an object in the popup window. I was expecting the Prefix field in the controller to provide this somehow - but it doesn't.

Can anyone give a clear example of how this works.

thanks
daniel

Answers

  • Sorry - rather than use popup I should have just described it as a new window.

    In other words, I record on window1 and everything works fine. I then perform an action on window1 that launches window2. I can't work out what I need to put in my script to identify that I now want to perform actions on window2. I clearly need some kind of prefix to indicate 'window2'
Sign In or Register to comment.