Windows OS is full of windows, even objects inside windows as we know them are also windows. Each window has a handle that is a pointer to the memory in which information about the window is stored.
Questions tagged [window-handles]
252 questions
0
votes
1 answer
Is there a way to open an IE window with a user-defined name. When same URL opened, already opened IE window comes to foreground
Here is my requirement which I intend to implement. There is one window application showing some icons which take me to different web sites. When I click on one of the icons, it should open an IE window and append a customized name to it.
So, before…

UserRedni03
- 3
- 3
0
votes
1 answer
How to get rid of the Close Button of a Console Window?
I have a customer who is using some old but still needed 32Bit-Software, which is running in a Console Window. It is necessary to disable the Close button because closing the Console using this button causes some serious problems in this software. …

Nils Schuder
- 13
- 5
0
votes
0 answers
How to use Form.Show(IWin32Window)
My goal is to use Form as progress bar of the Visio Application during some long actions.
Which means, the Form should be display on top of the Visio Application.
I also need the Form as non modal dialog (means not Form.ShowDialog()) in order to…

Gal Tzemach
- 64
- 9
0
votes
1 answer
Is there a way to get Windows to ignore the manual WindowStartupLocation I'm using for a particular window?
I'm using WindowStartupLocation.Manual to open a window on my app and I wonder if there is a way to tell Windows to ignore that location and do not open the next window after this one (where it is not mentioned a specific location for it) following…
0
votes
1 answer
How to handle new window, which opened automatically in new tab?
My test code do thomething, then automatically opening new tab and in a new tab automatically opening new window (not a tab).
When I use this code: driver.getWindowHandles() it is returns 2 tab ID instead 3 tab ID.

POMAIIIUK
- 439
- 4
- 19
0
votes
2 answers
High ram load and "Error creating window handle" exception
in my c# windows service I get an exception, Error creating window handle.
I'm working on a sip program. for each call 263KB ram used and after 1.2GB usage of ram I get above error. Handles are about 1300 on my service. My machine has enough free…

MKeshavarzian
- 5
- 1
- 8
0
votes
1 answer
java.lang.NoSuchFieldError: handle
I recently come across an issue with my Eclipse SWT GUI application. I was trying to acquire a window handle with the following code:
Display.getDefault().syncExec(()->{
handle = Display.getDefault().getActiveShell().handle;
…

dale
- 439
- 3
- 11
- 28
0
votes
1 answer
org.openqa.selenium.WebDriverException: invalid argument: 'handle' must be a string while window handling with Selenium and Java in Linux
I have an requirement of running test cases in CI pipeline. where the VM is linux. Selenium multiple window handling - switchTo() method throws exception for linux platform.
Exception:
org.openqa.selenium.WebDriverException: invalid argument:…

Sheetal Akhud
- 55
- 3
- 6
0
votes
2 answers
How can I close a tab then go to the other tab with selenium?
Here is an example script:
from selenium import webdriver
driver =…

TheRealTengri
- 1,201
- 1
- 7
- 17
0
votes
1 answer
Use HWND (or something similar) as Node Image in Virtual Stringtree
Is it possible to display an Icon obtained from an external Handle, as the Image of my Node in Virtual Stringtree? The Node's Data contains the HWND.

Jeff
- 12,085
- 12
- 82
- 152
0
votes
1 answer
Timeout on click event when action is opening a new window
I'm writing some selenium automation using c# in Visual Studio with NUnit and Chrome browser. In the webpage there is a Yes button which opens a new window.
The webpage states
Do you wish to proceed Yes / No?
Answer [Yes] a new window opens and then…

m_finn
- 177
- 13
0
votes
2 answers
Selenium window_handles does not work for javascript button
I'm working on a selenium project. I need to click on javascript button and save my new url in selenium window_handles. My code is as following
window_before =…

Mahdi
- 967
- 4
- 18
- 34
0
votes
2 answers
Creating a function to dig for Windows Handle by Classname(s) Only
So I just got an answer to my question about getting the Skype Chatbox handle.
I am now trying to create a simple function, that digs for a handle. Here is how I am hoping to be able to use it:
MyHWND := DigForHandle(['Notepad','Edit'],['Untitled -…

Jeff
- 12,085
- 12
- 82
- 152
0
votes
3 answers
How to check how many windows can be opened from a webpage using Selenium
When single/multiple windows are already opened on a webpage, we can find out the number of windows which are already opened by using selenium. But is there any way to find out by any tag or any other way that how many total windows can actually be…

Sameer Arora
- 4,439
- 3
- 10
- 20
0
votes
2 answers
Windows Handling Closes the whole browser if i try to close the current window in python
Am currently using windows handling for opening the map direction in the new window and after it opens i will be closing the child window, which is opened and do the remaming work in the code.But it is closing the whole browser, while debugging it…

koushick
- 497
- 2
- 8
- 30