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
-
public class PowerShellData extends SystemScript<PowerShellData>
-
-
Constructor Summary
Constructors Constructor Description PowerShellData()
PowerShellData(java.util.Map<java.lang.String,java.lang.Object> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getCommand()
Get a single-line PowerShell script.java.util.Optional<java.lang.String>
getScript()
Get a multiline PowerShell script.PowerShellData
withCommand(java.lang.String command)
Allows to provide a single-line PowerShell script.PowerShellData
withScript(java.lang.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
-
-
-
-
Method Detail
-
withScript
public PowerShellData withScript(java.lang.String script)
Allows to provide a multiline PowerShell script.- Overrides:
withScript
in classSystemScript<PowerShellData>
- Parameters:
script
- A valid PowerShell script.- Returns:
- self instance for chaining.
-
getScript
public java.util.Optional<java.lang.String> getScript()
Get a multiline PowerShell script.- Overrides:
getScript
in classSystemScript<PowerShellData>
- Returns:
- PowerShell script.
-
withCommand
public PowerShellData withCommand(java.lang.String command)
Allows to provide a single-line PowerShell script.- Overrides:
withCommand
in classSystemScript<PowerShellData>
- Parameters:
command
- A valid PowerShell script.- Returns:
- self instance for chaining.
-
getCommand
public java.util.Optional<java.lang.String> getCommand()
Get a single-line PowerShell script.- Overrides:
getCommand
in classSystemScript<PowerShellData>
- Returns:
- PowerShell script.
-
-