Invoke platform-specific custom commands
masterThe Appium Windows Driver provides custom command extensions prefixed with windows: to execute platform-specific scenarios that go beyond standard W3C APIs. You can invoke these using the executeScript method in your client library of choice.
// Java 11+
var result = driver.executeScript("windows: <methodName>", Map.of(
"arg1", "value1",
"arg2", "value2"
));// WebdriverIO
const result = await driver.executeScript('windows: <methodName>', [{
arg1: "value1",
arg2: "value2",
de}]);# Python
result = driver.execute_script('windows: <methodName>', {
'arg1': 'value1',
'arg2': 'value2',
})# Ruby
result = @driver.execute_script 'windows: <methodName>', {
arg1: 'value1',
arg2: 'value2',
}// Dotnet
object result = driver.ExecuteScript("windows: <methodName>", new Dictionary<string, object>() {
{"arg1", "value1"},
{"arg2", "value2"}
});