window-handles Questions

2

I need to retrieve the handle of a window selected by the user and then retrieve its handle. This window must be one of those shown when ALT+TAB is pressed. I tried enumerating the windows using En...
Angelicaangelico asked 30/4, 2022 at 15:24

1

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 ...
Hybridism asked 5/5, 2020 at 12:26

5

Solved

I'm trying to write a test with selenium in python language for a web page that manages users. In this page someone can add role for users and if a role exists while adding it, an alert raises. I d...
Pleurodynia asked 25/9, 2013 at 10:56

3

I'm using Selenium with Python (in Jupyter notebook). I have a number of tabs open, say 5 tabs (with all elements already finished loading) and I would like to cycle through them and do 2 things: ...

3

Is there any way to get window title without making any switch in selenium? presently I'm using below code: public boolean switchToWindowByTitle(String title){ String currentWindow = driver.getW...
Paleobiology asked 10/9, 2014 at 8:10

6

Solved

Can someone tell me how to get the handle of a Windows console application in C#? In a Windows Forms application, I would normally try this.Handle.
Cusick asked 14/8, 2009 at 12:23

4

Since Firefox does not support Control + T anymore for the tab, I started using driver.execute_script("window.open('URL', 'new_window')") I am trying to display the title of the different tab I ...
Houstonhoustonia asked 9/12, 2018 at 7:21

5

Solved

I am thinking if there are handles of the same value ? To clarify my question, let's say I open Notepad, type in some text, save it and then close Notepad. If I repeat this a thousand times (or ev...
Feu asked 14/8, 2011 at 8:47

6

Solved

I'm creating a new instance of Word using the Office interop by doing this: var word = Microsoft.Office.Interop.Word.Application(); word.Visible = true; word.Activate; I can get a window handle ...
Kanazawa asked 29/12, 2011 at 21:33

5

Here comes 2 windows pop out during the testing. my code: string BaseWindow = driver.CurrentWindowHandle; ReadOnlyCollection<string> handles = driver.WindowHandles; foreach(string handle ...
Culm asked 28/6, 2012 at 2:34

2

Solved

I have webpage which open new browser window on click. I am able to get 2 handles however driver.close() always closes the first/main window. from selenium import webdriver import time driver = we...

3

Solved

A window handle sometimes of type int and other times of type IntPtr int example: [DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(int hWnd, int ProcessId); IntPtr examp...
Stableman asked 11/8, 2013 at 14:56

1

Solved

We are working with Selenium webdriver to make UI tests for Internet Explorer 11.  In the tested webapplication there are several screens popping up. In several tests we end up with three browsersw...

1

Solved

Imagine I have Firefox and I open Firefox Start Page, then I should have a Window with the title: "Mozilla Firefox Start Page - Mozilla Firefox". I can find window handle with the code below HWND...
Hounding asked 23/12, 2016 at 0:50

4

I'm trying to create a message-only window to receive window messages from an MFC library class, within a winforms application. I've tried subclassing NativeWindow, and in the constructor requesti...
Macfadyn asked 1/6, 2009 at 16:31

4

Solved

Is there a way to get the window handle (IntPtr) for a window after its launched from a C# app with Process.Start()?
Yesima asked 14/9, 2009 at 12:11

4

Using Windows Forms I wanted to position window into specific coords. I thought it can be done in a simple way, but following code does not work at all: public Form1() { InitializeComponent(); ...
Dives asked 26/4, 2012 at 9:14

1

Solved

I have obtained the handle of a window I want to target, with win32gui library in Python How do I close the window? I have the following code, the second line did what I intended to do but the l...
Coppery asked 21/12, 2014 at 3:15

3

Solved

this is my code: using (Process game = Process.Start(new ProcessStartInfo() { FileName="DatabaseCheck.exe", RedirectStandardOutput = true, CreateNoWindow = true, UseShellExecute = false })) ...
Pimbley asked 24/4, 2013 at 6:51

3

Solved

Using Microsoft Spy++, I can see that the following windows that belong to a process: Process XYZ window handles, displayed in tree form just like Spy++ gives me: A B C D E F G H I J K ...
Outnumber asked 10/6, 2010 at 22:41

1

Solved

I'm looking for the best way to get a Window Handle in the following situation: I have the process id and process handle, I know the window titlename and I know that the process has only one ...
Ventricular asked 23/11, 2013 at 12:36

1

Solved

In my winforms application I am trying to get a main window handle, so I can set it as parent to my wpf modal window. I am not too experienced with winforms, so after a bit of googling I found two ...
Canuck asked 31/10, 2013 at 9:42

1

Solved

The wxWindow::GetHandle() function returns HWND on Windows and GtkWidget on linux. I need to get X11 Window Handle, which isn't the widget itself. How can I get the handle from that widget? I need ...
Sinkhole asked 9/2, 2013 at 13:2

10

Solved

We are seeing this error in a Winform application. Can anyone help on why you would see this error, and more importantly how to fix it or avoid it from happening. System.ComponentModel.Win3...
Shennashensi asked 21/10, 2008 at 17:1

4

Solved

When using PInvoke, I noticed that we need to use IntPtr to refer to Windows handles. I am wondering why not just use int for the handle? My understanding of a handle is that it is just an integer ...
Meza asked 7/2, 2012 at 0:22

© 2022 - 2024 — McMap. All rights reserved.