mirror of
https://github.com/appium/appium.git
synced 2026-10-28 20:31:51 +08:00
docs for settings
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user