PowerShell In GUI Blog

PowerShell GUI Box Just In A Few Clicks

Archive for September 2012

Tip of the day: setting the size of browser’s window

leave a comment »

Sometimes, you need to set a window to a particular size. Not a problem, in the one-liner below we start Firefox and set height and width:

Start-SeFirefox | ConvertTo-SeAutomationElement | Invoke-UIAWindowTransformResize -TransformResizeWidth 500 -TransformResizeHeight 200;
Advertisements

Written by Alexander Petrovskiy

September 6, 2012 at 6:15 pm

Posted in Powershell, tip

Tagged with