This project is read-only.
By default, the module saves a screenshot on every fail of a cmdlet:
[UIAutomation.Preferences]::OnErrorScreenShot
# default: $true
The default format is jpeg and you can change the format as shown in the following example:
[UIAutomation.Preferences]::OnErrorScreenShotFormat = [System.Drawing.Imaging.ImageFormat]::Png;
# default: jpg
There is also the possibility to save screenshot on a successful run of a cmdlet. The format settings is independent from OnErrorScreenShot:
[UIAutomation.Preferences]::OnSuccessScreenShot
# default: $false
[UIAutomation.Preferences]::OnSuccessScreenShotFormat
# default: jpg
By default, screenshots are stored in the user's temp folder. Here is the setting:
[UIAutomation.Preferences]::ScreenShotFolder
Sometimes, we need controls' images to be saved without the red square. The following option hides or shows the square dring the time the module takes a screenshot:
[UIAutomation.Preferences]::HideHighlighterOnScreenShotTaking
# default: $true

Last edited Feb 2, 2013 at 5:09 PM by xinliu, version 4

Comments

No comments yet.