Absent Member.. Absent Member..
Absent Member..

Maximize chrome browser using UFT

How can I maximize chrome browser using UFT?


I am unable to get any success with hwnd method.

1 Reply
Lieutenant Commander Lieutenant Commander
Lieutenant Commander

I'm not sure how you are creating your chrome browser instance, but I always prefer doing it using below line of code


       SystemUtil.Run "chrome.exe" , URL, , , 3


However, if you prefer to specifically handle a window, I'll would try something like below


       Window("nativeclass:=Chrome_WidgetWin_1","regexpwndtitle:= Google Chrome").Maximize

-- Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any solution/suggestion posted.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.