Getting HWND for Chrome browser using UFT 12
I am currently working on updating a function library script to ensure compatibility of our testing scripts with Chrome browser. We are using Chrome version 37 and I have already installed the suggested patch as per the version matrix provided by HP:
The code we currently use to get the HWND handle value for the browser window is:
Environment.Value("BrowserHwnd") = BrowserObjects(ix).GetRoProperty("hwnd")
BrowserID = "hwnd:=" & Environment.Value("BrowserHwnd")
When I run this using IE, it runs fine and there is a value assigned to hwnd but when using Chrome, the hwnd value is returned as 0. Is there something else that needs to be done or anything special that I am missing that I need to incorporate here in order to get the hwnd for Chrome?