@Descolada I am using UIA-v2 with usually two running Chromium browsers, mostly Vivaldi and Brave. My script (see snippet below) worked nicely for months but since updating to brave-v1.85.110-win32-x64 it is broken. I am using your latest UIA-v2 libraries, just updated them as of 2025-11-30 to make sure. Also after a PC restart the bug is confirmed - it's clearly caused by the Brave update, checked by reverting to v1.84.139 (142.1.84.139).
Strange symptom: The below script still detects the Brave Hwnd correctly, double-checked + confirmed. After UIA_Browser initialization I am using GetAllTabNames() but this now returns the Tabs from my running Vivaldi instance instead of the Brave browser! On the other hand, using for example cUIA.NewTab() correctly opens a new tab in the Brave instance. Looks like at least GetAllTabNames() is broken with the new Brave but potentially other tab functions as well, have not checked them all yet.
Thanks for looking into this!!
; Find any browser window in priority order
For exeBrowser In ["brave.exe", "vivaldi.exe", "chrome.exe", "firefox.exe"]
If (browserHwnd := WinExist("ahk_exe " exeBrowser))
Break
If (!browserHwnd)
Throw Error("No supported browser found running: Brave, Vivaldi, Chrome, Firefox!")
; Initialize UIA_Browser with the found browser
cUIA := UIA_Browser(browserHwnd)
Sleep(1000)
; Cycle through tabs and display the tab names
tabNames := cUIA.GetAllTabNames()
For index, tabName In tabNames
MsgBox tabName
@Descolada I am using UIA-v2 with usually two running Chromium browsers, mostly Vivaldi and Brave. My script (see snippet below) worked nicely for months but since updating to brave-v1.85.110-win32-x64 it is broken. I am using your latest UIA-v2 libraries, just updated them as of 2025-11-30 to make sure. Also after a PC restart the bug is confirmed - it's clearly caused by the Brave update, checked by reverting to v1.84.139 (142.1.84.139).
Strange symptom: The below script still detects the Brave Hwnd correctly, double-checked + confirmed. After UIA_Browser initialization I am using GetAllTabNames() but this now returns the Tabs from my running Vivaldi instance instead of the Brave browser! On the other hand, using for example cUIA.NewTab() correctly opens a new tab in the Brave instance. Looks like at least GetAllTabNames() is broken with the new Brave but potentially other tab functions as well, have not checked them all yet.
Thanks for looking into this!!