現在のデバイスの向きを設定します。

使用方法

                    .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
オプション
関数

コマンドが完了したときに呼び出されるオプションのコールバック関数。

参照