Because PowerShell is a scripted language, and not a compiled language, it is easier to create and edit scripts as you go.

Note however, all the scripts written in PowerShell can easily be written in Java or C#.

Install PowerShell

Make sure the latest PowerShell is installed. We recommend to install PowerShell 5 or higher. $PSVersionTable displays the version.

On Windows, PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1. In case your PowerShell version is lower than 5 please do upgrade PowerShell or install PowerShell Core. For more information refer to: install Windows PowerShell.

PowerShell Core (available for Linux, macOS and Windows)

To install PowerShell Core you can follow the instructions on:

PowerShell editor

You can use any text editor to write your PowerShell scripts.

Some editors provide additional scripting support:

  • Windows PowerShell ISE:

    1. Click on Windows Start
    2. Launch Windows PowerShell ISE application.
  • Visual Studio Code is a cross platform code editor and has a decent PowerShell (ms-vscode.powershell) extension including syntax highlighting, autocomplete and shell

Automate with PowerShell

The Quamotion PowerShell module is required to have access to the Quamotion WebDriver functions.

Copy and Paste the following command to install the Quamotion PowerShell module

Install-Module -Name Quamotion.PowerShell

If needed modify the execution policy for PowerShell. Please find more information about this function on https://technet.microsoft.com/en-us/library/ee176961.aspx

Set-ExecutionPolicy Unrestricted
Last modified October 25, 2019: Fix typo (eed93e5)