I’m creating a Chrome automation using chrome.ahk.
I am trying to access Out-of-Process iframes using chrome.ahk.
There is a problem, where a response to the get CDP command (ex: Browser.getVersion, Page.getFrameTree) cannot be received.
On the other hand, commands such as Page.Navigate and Browser.close work well.
Can you confirm whether the Browser.getVersion or Page.getFrameTree commands work properly?
Or could you please guide me to another way to access Out-of-Process iframes?
chrome version : 117.0.5938.92 (I tried installing an older version or a newer version, but it’s the same)
windows version : Windows 10 Pro 19045.4291
#Include %A_ScriptDir%/Chrome.ahk/Chrome.ahk
global PageInst
F1::
ChromeInst := new Chrome("C:workChromeUsersDefault",,,"C:Program FilesGoogleChromeApplicationchrome.exe",9222)
PageInst := ChromeInst1.GetPage()
PageInst.Call("Page.navigate", {"url": "https://www.autohotkey.com"})
PageInst.WaitForLoad()
return
F2::
PageInst.Call("Page.enable")
PageInst.Call("DOM.enable")
response := PageInst.Call("Browser.getVersion")
msgbox,% response
return
F4::ExitApp
response is null
I even tried Rufaydium and selenium but the results were the same.
Reoun Dde is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.