Window/Dialog name is not being captured while recording script for Desktop Application in UFT - hp-uft

How can I capture the Window/ Dialog of a Desktop Application using UFT when the Window/Dialog Name is not getting reflected while recording the Desktop Application using UFT. Have tried using Object SPY to capture the Window/Dialog Name, and the Window is getting detected also but it is not able to identify elements in that particular window when the Script is Run in UFT

Related

Applescript open app in certain desktop without switching focus

I am trying to make a simple AppleScript to open Spotify on my computer. I have assigned Spotify to always open on Desktop 2. However, every time it opens, it switches my focus from whatever desktop I am currently using to Desktop 2 where Spotify is being opened. Is there any way for me to prevent this, that is, for the app to open without switching my focus to a different desktop?
Current code:
tell application "Spotify"
activate
delay 3
playpause
end tell
I have also tried to open Spotify using commands like open -g -a 'Spotify', but this just opens the app in the background and still switches desktops.
Thanks for the help.

WinAppDriver not able to locate the Open button in open file dialog box

I have made a application which opens a open file dialog box when I click a button. I have created the open file dialog box using the Open File Dialog function. I want to automate this application using Windows Application Driver for that I have to click on the open button inside the open file dialog box. but the windows application driver is not able to find this open button.
I tried using automation id Class name run time id x path but it is not working
any suggestions?

Robotframework-WhiteLibrary : Windows app automation : Click button keyword is leading to failure

We are trying to automate a windows app which can be accessed only via Citrix Receiver, using Robotframework-Whitelibrary. I was able to launch the Citrix Receiver successfully. But Attach Window , Click button after that are not functioning. "Could not find a window titled " Citrix Receiver" is the error that is displayed. Without the "Attach Window" command , I wont be able to access any elements inside the application. I am not sure what I am doing wrong here. Test & Failure information below.
*** Test Cases ***
Test1
Launch Application ${Test Application}
Sleep 3sec
Attach Window Citrix Receiver
WhiteLibrary.Click Button text:Open
| FAIL | AutomationException: Couldn't find window with title Citrix
Receiver in process 17020, after waiting for 30 seconds at
TestStack.White.Factory.ChildWindowFactory.WaitTillFound(Func`1 find,
String message) at
TestStack.White.Factory.WindowFactory.CreateWindow(String title,
Process process, InitializeOption option, WindowSession windowSession)
at TestStack.White.Application.GetWindow(String title,
InitializeOption option)
Solution :
I had to do the following , Launch & attach the application and then attach window.
After that i was able to find the element in the app.
Launch Application ${Test Application}
Attach Application By Id ${pid}
Attach Window window_title=Citrix Receiver
You can use
#{windows}= Get Application Windows Locator
${wind_length}= Get Length ${windows}
log to console ${wind_length}
#above code to see how many windows are the in the application
#you can use index to switch window
Attach Window ${windows}[0]
#will attach the window in '0'th index

Windows / Open application within new process and resize

I have a windows embedded PC that has a custom 3rd party shell developed that runs in a full-screen mode. Unfortunately, it doesn't work correctly with certain applications that are larger than the resolution of the device and pushes the bottom off the screen of certain applications. I don't have access to the source code to change the any of the applications that break.
I am trying to work out if its possible to create a new full screen or windows form application that will open another application within the new process and resize it to the correct resolution. The application that I am trying to open inside a new process is a full-screen application and the size is not changeable.
I have seen that in C# you can embed another application within the form, however, is it also possible to resize a full-screen application within the form?

How to determine title and additional infos from an open window for use with Autohotkey?

To access and control a window, dialog or popup with Autohotkey the title of that specific window is needed. For some windows the title can be read directly if its visible, but some windows hide it. The window class and the exe (ahk_class and ahk_exe) aren't visible at all. How to gather this information reliable?
Use the Window Spy tool, which is installed together with AHK, it can be started various ways:
Right click the tray icon of a running AHK script and select Window Spy
Start the AU3_Spy.exe in the AHK installation folder
Use the Windows search to search for Window Spy
You will get a window called Active Window Info with various infos about your current active (topmost) window. The first box is the one you need.
Example
The box gives title, class and .exe to detect the target window of which every line can be used to identify the window. Now you should activate the window you want to address and copy the information.
Hint: You can (un-)freeze the display with Win + A

Resources