Class PowerShellData
java.lang.Object
io.appium.java_client.remote.options.BaseMapOptionData<T>
io.appium.java_client.remote.options.SystemScript<PowerShellData>
io.appium.java_client.windows.options.PowerShellData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a single-line PowerShell script.Get a multiline PowerShell script.withCommand(String command) Allows to provide a single-line PowerShell script.withScript(String script) Allows to provide a multiline PowerShell script.Methods inherited from class io.appium.java_client.remote.options.BaseMapOptionData
assignOptionValue, getOptionValue, toJson, toMap, toString
-
Constructor Details
-
PowerShellData
public PowerShellData() -
PowerShellData
-
-
Method Details
-
withScript
Allows to provide a multiline PowerShell script.- Overrides:
withScriptin classSystemScript<PowerShellData>- Parameters:
script- A valid PowerShell script.- Returns:
- self instance for chaining.
-
getScript
Get a multiline PowerShell script.- Overrides:
getScriptin classSystemScript<PowerShellData>- Returns:
- PowerShell script.
-
withCommand
Allows to provide a single-line PowerShell script.- Overrides:
withCommandin classSystemScript<PowerShellData>- Parameters:
command- A valid PowerShell script.- Returns:
- self instance for chaining.
-
getCommand
Get a single-line PowerShell script.- Overrides:
getCommandin classSystemScript<PowerShellData>- Returns:
- PowerShell script.
-