PowerShell In GUI Blog

PowerShell GUI Box Just In A Few Clicks

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;

Written by Alexander Petrovskiy

September 6, 2012 at 6:15 pm

Posted in Powershell, tip

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: