Expected Behavior
I'm having troublePrinting control identifiers for Google Chrome.
I've already the the command --force-renderer-accessibility in a command prompt & restarted Chrome.
Actual Behavior
Traceback (most recent call last):
File "C:\Users\asdffff\AppData\Roaming\Python\Python39\site-packages\pywinauto\timings.py", line 436, in wait_until_passes
func_val = func(*args, **kwargs)
File "C:\Users\asdffff\AppData\Roaming\Python\Python39\site-packages\pywinauto\findwindows.py", line 87, in find_element
raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'title': 'New Tab - Google Chrome', 'backend': 'uia', 'visible_only': False}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\asdffff\OneDrive n1ck99\OneDrive\Documents\python\pywinauto\github.Chrome2.py", line 4, in <module>
app = Application(backend="uia").connect(title='New Tab - Google Chrome',timeout=5)
File "C:\Users\asdffff\AppData\Roaming\Python\Python39\site-packages\pywinauto\application.py", line 990, in connect
self.process = timings.wait_until_passes(
File "C:\Users\asdffff\AppData\Roaming\Python\Python39\site-packages\pywinauto\timings.py", line 458, in wait_until_passes
raise err
pywinauto.timings.TimeoutError
Example Code
from pywinauto.application import Application
app = Application(backend="uia").start(r"C:\Program Files\Google\Chrome\Application\chrome.exe")
app = Application(backend="uia").connect(title='New Tab - Google Chrome',timeout=5)
app.NewTabGoogleChrome.print_control_identifiers()