add java-client command document
MODIFY
commands-yml/commands/device/network/gsm-call.yml
commands-yml/commands/device/network/gsm-call.yml
@@ -3,6 +3,9 @@ name: GSM Call
short_description: Make GSM call (Emulator only)
example_usage:
+ java:
+ |
+ driver.makeGsmCall("5551234567", GsmCallActions.CALL);
javascript_wd:
|
await driver.gsmCall('555-123-4567', 'Phone');
@@ -20,6 +23,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#makeGsmCall-java.lang.String-io.appium.java_client.android.GsmCallActions-"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L3183"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#gsm_call-instance_method"
ruby_core: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#gsm_call-instance_method"
@@ -40,7 +44,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: false

MODIFY
commands-yml/commands/device/network/gsm-signal.yml
commands-yml/commands/device/network/gsm-signal.yml
@@ -3,6 +3,9 @@ name: GSM Signal
short_description: Set GSM signal strength (Emulator only)
example_usage:
+ java:
+ |
+ driver.setGsmSignalStrength(GsmSignalStrength.GOOD);
javascript_wd:
|
await driver.gsmSignal(3);
@@ -20,6 +23,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#setGsmSignalStrength-io.appium.java_client.android.GsmSignalStrength-"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L3221"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#gsm_signal-instance_method"
ruby_core: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#gsm_signal-instance_method"
@@ -40,7 +44,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: false

MODIFY
commands-yml/commands/device/network/gsm-voice.yml
commands-yml/commands/device/network/gsm-voice.yml
@@ -3,6 +3,9 @@ name: GSM Voice
short_description: Set GSM voice state (Emulator only)
example_usage:
+ java:
+ |
+ driver.setGsmVoice(GsmVoiceState.HOME);
javascript_wd:
|
await driver.gsmVoice('Voice state');
@@ -20,6 +23,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#setGsmVoice-io.appium.java_client.android.GsmVoiceState-"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L3241"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#gsm_voice-instance_method"
ruby_core: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#gsm_voice-instance_method"
@@ -40,7 +44,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: false

MODIFY
commands-yml/commands/device/network/send-sms.yml
commands-yml/commands/device/network/send-sms.yml
@@ -3,6 +3,9 @@ name: Send SMS
short_description: Simulate an SMS message (Emulator only)
example_usage:
+ java:
+ |
+ driver.sendSMS("555-123-4567", "Hey lol");
javascript_wd:
|
await driver.sendSms('555-123-4567', 'Hey lol');
@@ -20,6 +23,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#sendSMS-java.lang.String-java.lang.String-"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L3183"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#send_sms-instance_method"
ruby_core: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Android/Device/Emulator#send_sms-instance_method"
@@ -40,7 +44,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: false

MODIFY
commands-yml/commands/device/network/toggle-airplane-mode.yml
commands-yml/commands/device/network/toggle-airplane-mode.yml
@@ -3,6 +3,9 @@ name: Toggle Airplane Mode
short_description: Toggle airplane mode on device
example_usage:
+ java:
+ |
+ driver.toggleAirplaneMode();
javascript_wd:
|
await driver.toggleAirplaneMode();
@@ -23,6 +26,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsNetworkStateManagement.html#toggleAirplaneMode--"
javascript_wdio: "http://webdriver.io/api/mobile/toggleAirplaneMode.html"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L2712"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/Appium/Core/Device#toggle_flight_mode-instance_method"
@@ -44,7 +48,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: true

MODIFY
commands-yml/commands/device/network/toggle-data.yml
commands-yml/commands/device/network/toggle-data.yml
@@ -3,6 +3,9 @@ name: Toggle Data
short_description: Switch the state of data service
example_usage:
+ java:
+ |
+ driver.toggleData();
javascript_wd:
|
await driver.toggleData();
@@ -23,6 +26,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsNetworkStateManagement.html#toggleData--"
javascript_wdio: "http://webdriver.io/api/mobile/toggleData.html"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L2771"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Device#toggle_data-instance_method"
@@ -44,7 +48,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: true

MODIFY
commands-yml/commands/device/network/toggle-wifi.yml
commands-yml/commands/device/network/toggle-wifi.yml
@@ -3,6 +3,9 @@ name: Toggle WiFi
short_description: Switch the state of the wifi service
example_usage:
+ java:
+ |
+ driver.toggleWifi();
javascript_wd:
|
await driver.toggleWiFi();
@@ -23,6 +26,7 @@ example_usage:
// TODO
client_docs:
+ java: "https://appium.github.io/java-client/io/appium/java_client/android/SupportsNetworkStateManagement.html#toggleWifi--"
javascript_wdio: "http://webdriver.io/api/mobile/toggleWiFi.html"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L2738"
ruby: "https://www.rubydoc.info/github/appium/ruby_lib_core/master/Appium/Core/Device#toggle_wifi-instance_method"
@@ -44,7 +48,7 @@ driver_support:
windows:
windows: false
client_support:
- java: false
+ java: true
python: false
ruby: true
php: true

MODIFY
docs/en/commands/device/network/gsm-call.md
docs/en/commands/device/network/gsm-call.md
@@ -6,7 +6,9 @@ Make GSM call (Emulator only)
## Example Usage
```java
-// Not supported
+// Java
+driver.makeGsmCall("5551234567", GsmCallActions.CALL);
+
```
```python
@@ -65,7 +67,7 @@ gsm_call(phone_number: '5551234567', action: :call)
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#makeGsmCall-java.lang.String-io.appium.java_client.android.GsmCallActions-) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L3183) |

MODIFY
docs/en/commands/device/network/gsm-signal.md
docs/en/commands/device/network/gsm-signal.md
@@ -6,7 +6,9 @@ Set GSM signal strength (Emulator only)
## Example Usage
```java
-// Not supported
+// Java
+driver.setGsmSignalStrength(GsmSignalStrength.GOOD);
+
```
```python
@@ -65,7 +67,7 @@ gsm_signal :good
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#setGsmSignalStrength-io.appium.java_client.android.GsmSignalStrength-) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L3221) |

MODIFY
docs/en/commands/device/network/gsm-voice.md
docs/en/commands/device/network/gsm-voice.md
@@ -6,7 +6,9 @@ Set GSM voice state (Emulator only)
## Example Usage
```java
-// Not supported
+// Java
+driver.setGsmVoice(GsmVoiceState.HOME);
+
```
```python
@@ -65,7 +67,7 @@ gsm_voice :home
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#setGsmVoice-io.appium.java_client.android.GsmVoiceState-) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L3241) |

MODIFY
docs/en/commands/device/network/send-sms.md
docs/en/commands/device/network/send-sms.md
@@ -6,7 +6,9 @@ Simulate an SMS message (Emulator only)
## Example Usage
```java
-// Not supported
+// Java
+driver.sendSMS("555-123-4567", "Hey lol");
+
```
```python
@@ -65,7 +67,7 @@ send_sms(phone_number: '555-123-4567', message: 'Hey lol')
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsSpecialEmulatorCommands.html#sendSMS-java.lang.String-java.lang.String-) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L3183) |

MODIFY
docs/en/commands/device/network/toggle-airplane-mode.md
docs/en/commands/device/network/toggle-airplane-mode.md
@@ -6,7 +6,9 @@ Toggle airplane mode on device
## Example Usage
```java
-// Not supported
+// Java
+driver.toggleAirplaneMode();
+
```
```python
@@ -68,7 +70,7 @@ toggle_flight_mode
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsNetworkStateManagement.html#toggleAirplaneMode--) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L2712) |

MODIFY
docs/en/commands/device/network/toggle-data.md
docs/en/commands/device/network/toggle-data.md
@@ -6,7 +6,9 @@ Switch the state of data service
## Example Usage
```java
-// Not supported
+// Java
+driver.toggleData();
+
```
```python
@@ -68,7 +70,7 @@ toggle_data
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsNetworkStateManagement.html#toggleData--) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L2771) |

MODIFY
docs/en/commands/device/network/toggle-wifi.md
docs/en/commands/device/network/toggle-wifi.md
@@ -6,7 +6,9 @@ Switch the state of the wifi service
## Example Usage
```java
-// Not supported
+// Java
+driver.toggleWifi();
+
```
```python
@@ -68,7 +70,7 @@ toggle_wifi
|Language|Support|Documentation|
|--------|-------|-------------|
-|[Java](https://github.com/appium/java-client/releases/latest)| None | |
+|[Java](https://github.com/appium/java-client/releases/latest)| All | [appium.github.io](https://appium.github.io/java-client/io/appium/java_client/android/SupportsNetworkStateManagement.html#toggleWifi--) |
|[Python](https://github.com/appium/python-client/releases/latest)| None | |
|[Javascript (WebdriverIO)](http://webdriver.io/index.html)| All | |
|[Javascript (WD)](https://github.com/admc/wd/releases/latest)| All | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L2738) |

add java-client command document (#11700)