Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pywinauto.timings.TimeoutError: timed out #1390

Open
koking0 opened this issue Apr 25, 2024 · 0 comments
Open

pywinauto.timings.TimeoutError: timed out #1390

koking0 opened this issue Apr 25, 2024 · 0 comments

Comments

@koking0
Copy link

koking0 commented Apr 25, 2024

Expected Behavior

Open Chrome via pywinauto and search for "TUST".

Actual Behavior

Traceback (most recent call last):
  File "e:\Project\J.A.R.V.I.S\JarvisClient\window.py", line 6, in <module>
    chrome_window.wait("ready", timeout=10)
  File "E:\Project\J.A.R.V.I.S\JarvisClient\.venv\Lib\site-packages\pywinauto\application.py", line 529, in wait      
    wait_until(timeout, retry_interval,
  File "E:\Project\J.A.R.V.I.S\JarvisClient\.venv\Lib\site-packages\pywinauto\timings.py", line 375, in wait_until    
    raise err
pywinauto.timings.TimeoutError: timed out

Short Example of Code to Demonstrate the Problem

from pywinauto import Application

chrome_exe_path = r"C:\Program Files\Google\Chrome\Application\chrome.exe"
app = Application(backend='uia').start(chrome_exe_path)
chrome_window = app.window(title_re=".*Google Chrome")
chrome_window.wait("ready", timeout=10)

chrome_window.print_control_identifiers()

search_box = chrome_window.Edit
search_box.type_keys("TUST")

Specifications

  • Pywinauto version: 0.6.8
  • Python version and bitness: 3.11.5
  • Platform and OS: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant