Questions tagged [window-handles]

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.

252 questions
0
votes
1 answer

Getting window handle of a gnuplot graph in C#

I am working on a GUI project in C# Winforms that requires the use of charts from gnuplot. These charts must be in the dynamic form so that the user can get information by clicking on the chart. This means that I have to have the window open and…
Jake Gearhart
  • 297
  • 7
  • 21
0
votes
2 answers

Execute a application and wait for it to be loaded

I'm searching for a way to execute Steam (Steam.exe) and wait for it to be loaded (Not to exited). I was think a good idea is to list all the child handles and search for a string in the title handles because when steam loads exist a window handle…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
1 answer

How do you retrieve inner window handles in chrome/firefox + applications outside of yours?

There are a few PInvoke functions out there for grabbing window handles, but how do you grab the exact window handle that is in use: for example the richTextBox1 window within an app? or a Notepad.exe's textbox handle? Also text on webpages in…
yumyum
  • 7
  • 6
0
votes
1 answer

Storing and using Windows Handle ( WId ) in registry

I wish to store the Window handle of a running instance of an application in the registry, the WId of a widget ( in Qt ). I need this to ensure that if another application starts, it can check the registry to know whom it is supposed to send a…
user1173240
  • 1,455
  • 2
  • 23
  • 50
-1
votes
1 answer

How to know exactly what window is being interacted by user?

I want to check what window is being interacted with window_handle, but after changing window with my mouse, the current_window_handle was the same. How can I solve that problem ?
sahshaash
  • 11
  • 2
-1
votes
1 answer

Python Selenium: Closing a new tab with driver.close() is probably causing "no such window: target window already closed; web view not found" error

Recently I have started working with multiple tabs in Selenium and I have encountered a strange problem. When I'm executing this code: WebDriverWait(driver,…
-1
votes
1 answer

Cannot find Element ( selenium python) from Stockx

from bs4 import BeautifulSoup import time from selenium import webdriver from selenium.webdriver.chrome.options import Options import ssl ssl._create_default_https_context = ssl._create_unverified_context from selenium.webdriver.common.by import…
-1
votes
1 answer

invoke a private environment variable of a process from another PS Session

I have a process (testxx) running on my Database. Every time a user connects with the database the process will start separate session for. All processes include a private environment variable(Client-Nr) with different values. I want to invoke a…
Keeran
  • 302
  • 1
  • 15
-1
votes
1 answer

C# Using PrintWindow

I am trying to capture a window in win7 without disabling aero and I hear PrintWindow Works. But I'm not sure how to use it, I found some articles but I can't see any image or bitmap output in any of them Has anyone ever had experience with this…
user779444
  • 1,365
  • 4
  • 21
  • 38
-1
votes
1 answer

How to open a new window using the new method WindowType of Selenium 4

The release notes of Selenium v4.0.0.0-alpha-1 mentions about: * Added command to open a new window. Source code: public static WindowType fromString(String text) { if (text != null) { for (WindowType b : WindowType.values()) { …
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
-1
votes
1 answer

How to open the second link in the adjacent tab?

I have been trying many functions to open a link in a tab I recently opened but it does not work. Minimum reproducible example with commentary saying what happens after each line (this is using Selenium webdriver,…
-1
votes
2 answers

FindWindow in C#(via pinvoke) finds desired window handle, but not in the desired conditions. How do I fix it?

I'm trying to get certain window handle. I was searching for solution for many hours and I understand that my question sounds similar to this one: FindWindow() doesn't find my window [C++] But that discussion didn't help. I was trying to use both…
-1
votes
1 answer

Why am I getting the parent and child window handlers same when I print them?

String parentWindowHandler = browser.getWindowHandle(); // Store your parent window System.out.println(parentWindowHandler); browser.findElement(By.cssSelector("button.btn-danger")).click(); String subWindowHandler = null; Set handles =…
-1
votes
2 answers

Find textbox on another form and write to it

Using VS2010 C# I am at a complete loss... I have a vendors program to export data in a proprietary format into a CSV file. I have about 20 disks and one of them has 255 such files... I want to automate the process... Which was fairly…
Mike Sr
  • 511
  • 1
  • 5
  • 15
-1
votes
1 answer

"java.lang.ArrayIndexOutOfBoundsException" exception occurred when handling multiple window using webdriver

I am using below code to handle multiple window using selenium webdriver and getting "java.lang.ArrayIndexOutOfBoundsException" exception . Please check my simple code below : public class Window_handling { WebDriver driver; …
1 2 3
16
17