You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Appium’s XCUITest driver provides the mobile: launchApp execution method to start an app with processArguments and environment variables. However, the Appium .NET Client does not offer a dedicated, user-friendly method to invoke this extension.
Problem
Developers using the .NET client must manually execute mobile: launchApp via driver.ExecuteScript(), which is less intuitive and requires additional boilerplate code.
Unlike the existing LaunchApp() and RestartApp() methods, there is no high-level method that directly supports passing processArguments and environment variables.
Proposed Solution
Introduce a new method in the .NET client, such as:
public void LaunchAppWithArguments(string bundleId, Dictionary<string, object> processArguments = null, Dictionary<string, string> environmentVariables = null)
This method should:
Internal call mobile: launchApp with the provided arguments.
It allows specifying processArguments and environment variables in a structured manner.
Ensure consistency with other Appium client implementations.
Benefits
Provides a clean, structured API for launching apps with specific configurations.
Reduces the need for raw script execution (driver.ExecuteScript()).
Aligns the .NET client with the Appium XCUITest driver’s intended usage.
Background
Currently, Appium’s XCUITest driver provides the mobile: launchApp execution method to start an app with processArguments and environment variables. However, the Appium .NET Client does not offer a dedicated, user-friendly method to invoke this extension.
Problem
Developers using the .NET client must manually execute mobile: launchApp via driver.ExecuteScript(), which is less intuitive and requires additional boilerplate code.
Unlike the existing LaunchApp() and RestartApp() methods, there is no high-level method that directly supports passing processArguments and environment variables.
Proposed Solution
Introduce a new method in the .NET client, such as:
public void LaunchAppWithArguments(string bundleId, Dictionary<string, object> processArguments = null, Dictionary<string, string> environmentVariables = null)
This method should:
Internal call mobile: launchApp with the provided arguments.
It allows specifying processArguments and environment variables in a structured manner.
Ensure consistency with other Appium client implementations.
Benefits
Provides a clean, structured API for launching apps with specific configurations.
Reduces the need for raw script execution (driver.ExecuteScript()).
Aligns the .NET client with the Appium XCUITest driver’s intended usage.
Reference
Original discussion: #858
The text was updated successfully, but these errors were encountered: