diff --git a/docs/en/writing-running-appium/appium-bindings.md b/docs/en/writing-running-appium/appium-bindings.md index 47ba634d2..eef626a84 100644 --- a/docs/en/writing-running-appium/appium-bindings.md +++ b/docs/en/writing-running-appium/appium-bindings.md @@ -994,6 +994,46 @@ $this->pushFile($path, base64_encode($data)); driver.PushFile("/data/local/tmp/file.txt", "some data for the file"); ``` +### Settings + +Here you will find sample code for getting/setting appium serverSetting. +For more information on how they work, and which settings are supported, see +[the settings docs][/docs/en/advanced-concepts/settings.md] + +```ruby +current_settings = get_settings +update_settings someSetting: true +``` + +```python +current_settings = driver.get_settings() +driver.update_settings({"someSetting": true}) +``` + +```java +JsonObject settings = driver.getSettings() +// java-client doesn't support setting arbitrary settings, just settings which are already provided by appium. +// So for the 'ignoreUnimportantViews' setting, the following method exists: +driver.ignoreUnimportantViews(true); +``` + +```javascript +var settings = driver.settings(); +browser.updateSettings({'someSetting': true}); +``` + +```php +$settings = $this->getSettings(); +$this->updateSettings(array('cyberdelia' => "open")); +``` + +```csharp +Dictionarysettings = driver.GetSettings(); +// dotnet-driver doesn't support setting arbitrary settings, just settings which are already provided by appium. +// So for the 'ignoreUnimportantViews' setting, the following method exists: +driver.IgnoreUnimportantViews(true); +``` + ### Appium Desktop Apps Appium's desktop app supports OS X and Windows.