How can I resize, move, maximize or minimize the Edge browser?

  • Questions
  • How can I resize, move, maximize or minimize the Edge browser?
Question ID: 108044

I want to be able to manipulate the Edge browser as you can do with other browsers like it is mentioned in [this other post][1].

The methods in that post do not work on Edge. I have not been able to find a way to get it to work with Edge.


Marked as spam
Posted by (Questions: 384, Answers: 61)
Asked on December 21, 2017 9:09 pm
Answers (1)
Private answer

According to Micro Focus, the .FullScreen method will not work with Edge ([][1]) However I have found that with the current Windows 10 Creator's Fall Update, it does work.

I have not found a way to reliably resize the Edge Browser, however, you can minimize and maximize it. See below code, using UI Automation. You will need to add the objects to the Object Repository.

Note that .Resize and .Move will not work.

SystemUtil.Run ''C:Program Files (x86)HPUnified Functional TestingbinWebDriverHost.exe'', ''''

Browser(''The Internet'').FullScreen

UIAWindow(''The Internet ?- Microsoft'').Activate
UIAWindow(''The Internet ?- Microsoft'').Minimize
UIAWindow(''The Internet ?- Microsoft'').Maximize
msgbox (UIAWindow(''The Internet ?- Microsoft'').CanMove)
msgbox (UIAWindow(''The Internet ?- Microsoft'').CanResize)

If I find a way to get .Move or .Resize to work, I will update this post.


Marked as spam
Posted by (Questions: 16, Answers: 806)
Answered on December 21, 2017 9:11 pm
Thanks for that.
( at December 21, 2017 9:12 pm)
thank you very much!
( at December 22, 2017 1:45 pm)