I want to get information about my Chrome tabs like the URL of the current tab or get all URLs automatically but I can\'t find any documentation about it. I installed the Ch
You can get the current URL (or at least what is typed in the address bar) via
from pywinauto import Application
app = Application(backend='uia')
app.connect(title_re=".*Chrome.*")
element_name="Address and search bar"
dlg = app.top_window()
url = dlg.child_window(title=element_name, control_type="Edit").get_value()
print(url)
If you use another language the element_name might be different. You can get the corresponding name via inspect.exe which is part of the Windows 10 SDK\Windows Kit under C:\Program Files (x86)\Windows Kits\10\bin\x64\inspect.exe. Then just hover over the address bar and you'll find your name.
This by the way works with many browsers:
Search or enter an addressSearch with Google or enter addressAddress fieldAddress and search bar