docs for settings

This commit is contained in:
Jonah Stiennon
2014-09-24 15:00:26 -07:00
parent 6dd347e3bc
commit 5e26cd651d
@@ -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
Dictionary<String, Object>settings = 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.