I have tried with switch to window method but it is throwing an error that window index , window title and window url not found.
Also tried to switch using robot class using keyboard events, here it's switching but katalon controller is not switching to new window.
Any suggestions how to switch to new from current window?
Related
I have a window that opens another window which has the same specifications as the original window on Window Spy except for the title. But the title for the new window changes every time it is opened (The title for the original window can change as well.). I currently use WinActivate to activate the original window but it brings up the new window. I currently use move my mouse and left click to activate the original window (if the new window is not maximized) and I'm able to proceed to the next step in the macro of clicking a button in the original window and finish my macro. But if the new window is full screen, then I'm not able to "move my mouse to click" on the original window and continue with the rest of the macro. It will hold up the macro until I manually click on the original screen and complete the next step in the macro.
In my menu bar app, I have a menu item which opens a window. The window opens in the front with the window behind it remaining the key window.
I can't get window.makeKey() to work unless I run it after a breakpoint. I tried putting the line of code in different places in the window's life cycle and even put it in DispatchQueue.main.asyncAfter(deadline: execute:) and it didn't work.
I have also tried using window.makeKeyAndOrderFront(sender:). The property window.canBecomeKey is true.
Turns out I needed to put this line in the IBAction for the menu item that opens the window:
NSApplication.shared.activate(ignoringOtherApps: true)
That makes it the key window when it opens, so I don't have to call window.makeKey()
When I start Eclipse I get nothing. Not a single view. Similar to my previous question here except that now I have absolutely nothing at all. I don't have a menu to be able to even select window -> New Window or window -> reset perspective. The screen is completely other then the application running in my taskbar.
Say I have a a detached window with a view in it. And I have an action to open the same kind of view, I would like to open it in the detached window, is there anyway to do it?
I have tried getting the IWorkBenchPage of the detached window where the open action is called and calling showView on it, but the new window is still opened in the Eclipse window.
This can be done in Eclipse from version Mars(4.5) and higher Using the mars specific UI API. e.g. MPart as opposed to ViewPart
I'm testing a list of links using Sahi Pro, and each link opens a popup window in which I have to assert that a few elements are available. I'm able to use _closeWindow to get rid of each popup, but I've noticed that every time a new popup loads, it opens a new Sahi controller window to execute the script within that popup. These controller windows do not close when the popups close. Before long there are so many open controller windows that test execution freezes.
Is there a way to close these controller windows programatically? Or to prevent a new one from accompanying each popup in the first place?
This can be avoided by running scripts as test suites from the command line.