|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + * you may not use this file except in compliance with the License. |
| 4 | + * See the NOTICE file distributed with this work for additional |
| 5 | + * information regarding copyright ownership. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package io.appium.java_client.mac.options; |
| 18 | + |
| 19 | +import io.appium.java_client.remote.AutomationName; |
| 20 | +import io.appium.java_client.remote.MobilePlatform; |
| 21 | +import io.appium.java_client.remote.options.BaseOptions; |
| 22 | +import org.openqa.selenium.Capabilities; |
| 23 | + |
| 24 | +import java.util.Map; |
| 25 | + |
| 26 | +/** |
| 27 | + * https://github.com/appium/appium-mac2-driver#capabilities |
| 28 | + */ |
| 29 | +public class Mac2Options extends BaseOptions<Mac2Options> implements |
| 30 | + SupportsSystemPortOption<Mac2Options>, |
| 31 | + SupportsSystemHostOption<Mac2Options>, |
| 32 | + SupportsWebDriverAgentMacUrlOption<Mac2Options>, |
| 33 | + SupportsBootstrapRootOption<Mac2Options>, |
| 34 | + SupportsBundleIdOption<Mac2Options>, |
| 35 | + SupportsArgumentsOption<Mac2Options>, |
| 36 | + SupportsEnvironmentOption<Mac2Options>, |
| 37 | + SupportsServerStartupTimeoutOption<Mac2Options>, |
| 38 | + SupportsSkipAppKillOption<Mac2Options>, |
| 39 | + SupportsShowServerLogsOption<Mac2Options>, |
| 40 | + SupportsPrerunOption<Mac2Options>, |
| 41 | + SupportsPostrunOption<Mac2Options> { |
| 42 | + public Mac2Options() { |
| 43 | + setCommonOptions(); |
| 44 | + } |
| 45 | + |
| 46 | + public Mac2Options(Capabilities source) { |
| 47 | + super(source); |
| 48 | + setCommonOptions(); |
| 49 | + } |
| 50 | + |
| 51 | + public Mac2Options(Map<String, ?> source) { |
| 52 | + super(source); |
| 53 | + setCommonOptions(); |
| 54 | + } |
| 55 | + |
| 56 | + private void setCommonOptions() { |
| 57 | + setPlatformName(MobilePlatform.MAC); |
| 58 | + setAutomationName(AutomationName.MAC2); |
| 59 | + } |
| 60 | +} |
0 commit comments