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

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.

[1]: http://eyeontesting.com/questions/3231/resize-maximize-and-relocate-ie.html

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on December 21, 2017 9:09 pm
610 views
Answers (1)
1
Private answer

According to Micro Focus, the .FullScreen method will not work with Edge ([https://admhelp.microfocus.com/uft/en/14.01/UFT_Help/Content/Addins_Guide/EdgeLims.htm?Highlight=edge#hp-minitoc-item-2][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'', ''https://the-internet.herokuapp.com/''

Browser(''The Internet'').FullScreen
wait(3)

UIAWindow(''The Internet ?- Microsoft'').Activate
wait(3)
UIAWindow(''The Internet ?- Microsoft'').Minimize
wait(3)
UIAWindow(''The Internet ?- Microsoft'').Maximize
wait(3)
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.

[1]: https://admhelp.microfocus.com/uft/en/14.01/UFT_Help/Content/Addins_Guide/EdgeLims.htm?Highlight=edge#hp-minitoc-item-2

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

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top