.setOrientation() 編集を提案
現在のデバイスの向きを設定します。
使用方法
.appium.setOrientation(orientation, [callback])
例
module.exports = {
'set orientation to LANDSCAPE': function (app) {
app
.appium.setOrientation('LANDSCAPE');
},
'set orientation to PORTRAIT with ES6 async/await': async function (app) {
await app.appium.setOrientation('PORTRAIT');
}
};
パラメータ
名前 | 型 | 説明 |
---|---|---|
orientation |
文字列 | 新しいデバイスの向き: `LANDSCAPE` または `PORTRAIT`。 |
callback オプション |
関数 | コマンドが完了したときに呼び出されるオプションのコールバック関数。 |