Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Scripts and Functions (v2) • Re: UIA v2

$
0
0
I have been having some weird issues with UIA these days, I haven't changed my code in any way.

I am automating google chrome on 2 computers, but on one computer (COMP 1) it works as usual, but on the other (COMP 2) it stopped working so I was trying to debug:

CODE:

UIA := new UIA_Browser("ahk_exe " browserExe)

if !(IsObject(UIA)) {
msgbox UIA is not loaded
return
}

if !(UIA.GetCurrentURL() == "chrome://new-tab-page/") {
UIA.NewTab()
}


- for some reason UIA.NewTab() did not work on COMP 2.
- they are both on the same google chrome version
- same UIA version, in this case UIA for AHK v1.
- The surprising thing is... I tried UIAViewer (v2) and launched https://www.autohotkey.com/boards/ but COMP 2 only detected the statusbar and the body, no other elements were detected, where as COMP 1 I launched the same UIAViewer and it was able to detect every single element (by detect I mean it shows the blue rectangle).

what could be happening on COMP 2? My other AHK scripts work as usual, it's only UIA v1 giving me issues, that or chrome... but they are on the same version so why COMP 1 works and COMP 2 not?

Statistics: Posted by fenchai — 37 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles